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

Method equals

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

Source from the content-addressed store, hash-verified

117 int hash() { return _type; }
118
119 @Override
120 public final boolean equals( Object o ) {
121 if( o==this ) return true;
122 if( !(o instanceof Type t)) return false;
123 if( _type != t._type ) return false;
124 return eq(t);
125 }
126 // Overridden in subclasses; subclass can assume "this!=t" and java classes are same
127 boolean eq(Type t) { return true; }
128

Callers 6

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