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

Method indexOf

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

Source from the content-addressed store, hash-verified

702 }
703
704 public int indexOf(Object o) {
705 if (o instanceof Short) {
706 short s = ((Short) o).shortValue();
707 for (int j = i; j < array.length; j++)
708 if (s == array[j]) return j - i;
709 }
710 if (o == null) {
711 return -1;
712 }
713 for (int j = i; j < array.length; j++)
714 if (o.equals(array[j])) return j - i;
715 return -1;
716 }
717
718 public int lastIndexOf(Object o) {
719 if (o instanceof Short) {

Callers

nothing calls this directly

Calls 2

shortValueMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected