MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / equals

Method equals

chapter09/src/main/java/com/seaofnodes/simple/type/Type.java:78–84  ·  view source on GitHub ↗
( Object o )

Source from the content-addressed store, hash-verified

76 int hash() { return _type; }
77
78 @Override
79 public final boolean equals( Object o ) {
80 if( o==this ) return true;
81 if( !(o instanceof Type t)) return false;
82 if( _type != t._type ) return false;
83 return eq(t);
84 }
85 // Overridden in subclasses; subclass can assume "this!=t" and java classes are same
86 boolean eq(Type t) { return true; }
87

Callers 3

equalOrNullMethod · 0.45
sameStackTraceOriginMethod · 0.45
reduceMethod · 0.45

Calls 1

eqMethod · 0.95

Tested by 3

equalOrNullMethod · 0.36
sameStackTraceOriginMethod · 0.36
reduceMethod · 0.36