(Object o)
| 370 | } |
| 371 | |
| 372 | public int indexOf(Object o) { |
| 373 | if (o instanceof Number) { |
| 374 | double d = ((Number) o).doubleValue(); |
| 375 | for (int j = i; j < array.length; j++) |
| 376 | if (d == array[j]) return j - i; |
| 377 | } |
| 378 | |
| 379 | return -1; |
| 380 | } |
| 381 | |
| 382 | public int lastIndexOf(Object o) { |
| 383 | if (o instanceof Number) { |
nothing calls this directly
no test coverage detected