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

Method compareTo

src/jvm/clojure/lang/Ref.java:20–27  ·  view source on GitHub ↗
(Ref ref)

Source from the content-addressed store, hash-verified

18
19public class Ref extends ARef implements IFn, Comparable<Ref>, IRef{
20 public int compareTo(Ref ref) {
21 if(this.id == ref.id)
22 return 0;
23 else if(this.id < ref.id)
24 return -1;
25 else
26 return 1;
27 }
28
29public int getMinHistory(){
30 return minHistory;

Callers 8

ltMethod · 0.45
compareMethod · 0.45
lteMethod · 0.45
gteMethod · 0.45
equivMethod · 0.45
ltMethod · 0.45
lteMethod · 0.45
gteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected