(Object o)
| 528 | } |
| 529 | |
| 530 | public int indexOf(Object o) { |
| 531 | if (o instanceof Byte) { |
| 532 | byte b = ((Byte) o).byteValue(); |
| 533 | for (int j = i; j < array.length; j++) |
| 534 | if (b == array[j]) return j - i; |
| 535 | } |
| 536 | if (o == null) { |
| 537 | return -1; |
| 538 | } |
| 539 | for (int j = i; j < array.length; j++) |
| 540 | if (o.equals(array[j])) return j - i; |
| 541 | return -1; |
| 542 | } |
| 543 | |
| 544 | public int lastIndexOf(Object o) { |
| 545 | if (o instanceof Byte) { |