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

Method equals

chapter23/src/main/java/com/seaofnodes/simple/type/Type.java:210–216  ·  view source on GitHub ↗
( Object o )

Source from the content-addressed store, hash-verified

208 int hash() { return _type; }
209
210 @Override
211 public final boolean equals( Object o ) {
212 if( o==this ) return true;
213 if( !(o instanceof Type t)) return false;
214 if( _type != t._type ) return false;
215 return eq(t);
216 }
217 // Overridden in subclasses; subclass can assume "this!=t" and java classes are same
218 boolean eq(Type t) { return this==t; }
219 boolean cycle_eq(Type t) { assert _type < TCYCLIC; return _type==t._type && eq(t); }

Callers 11

internMethod · 0.95
eqMethod · 0.45
eqMethod · 0.45
shallowISAMethod · 0.45
xmeetMethod · 0.45
eqMethod · 0.45
xmeetMethod · 0.45
static_eqMethod · 0.45
findMethod · 0.45
xmeetMethod · 0.45
static_eqMethod · 0.45

Calls 1

eqMethod · 0.95

Tested by

no test coverage detected