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

Method compare

src/jvm/clojure/lang/AFunction.java:52–64  ·  view source on GitHub ↗
(Object o1, Object o2)

Source from the content-addressed store, hash-verified

50}
51
52public int compare(Object o1, Object o2){
53 Object o = invoke(o1, o2);
54
55 if(o instanceof Boolean)
56 {
57 if(RT.booleanCast(o))
58 return -1;
59 return RT.booleanCast(invoke(o2,o1))? 1 : 0;
60 }
61
62 Number n = (Number) o;
63 return n.intValue();
64}
65}

Callers

nothing calls this directly

Calls 3

booleanCastMethod · 0.95
invokeMethod · 0.65
intValueMethod · 0.45

Tested by

no test coverage detected