MCPcopy Index your code
hub / github.com/clojure/clojure / indexOf

Method indexOf

src/jvm/clojure/lang/ArraySeq.java:530–542  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 2

byteValueMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected