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

Method equals

chapter21/src/main/java/com/seaofnodes/simple/type/Type.java:125–131  ·  view source on GitHub ↗
( Object o )

Source from the content-addressed store, hash-verified

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

Callers 9

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

Calls 1

eqMethod · 0.95

Tested by

no test coverage detected