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

Method equals

chapter22/src/main/java/com/seaofnodes/simple/type/Type.java:127–133  ·  view source on GitHub ↗
( Object o )

Source from the content-addressed store, hash-verified

125 int hash() { return _type; }
126
127 @Override
128 public final boolean equals( Object o ) {
129 if( o==this ) return true;
130 if( !(o instanceof Type t)) return false;
131 if( _type != t._type ) return false;
132 return eq(t);
133 }
134 // Overridden in subclasses; subclass can assume "this!=t" and java classes are same
135 boolean eq(Type t) { return true; }
136

Callers 10

eqMethod · 0.45
eqMethod · 0.45
shallowISAMethod · 0.45
xmeetMethod · 0.45
eqMethod · 0.45
xmeetMethod · 0.45
eqMethod · 0.45
findMethod · 0.45
xmeetMethod · 0.45
eqMethod · 0.45

Calls 1

eqMethod · 0.95

Tested by

no test coverage detected