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

Method equals

chapter19/src/main/java/com/seaofnodes/simple/type/Type.java:124–130  ·  view source on GitHub ↗
( Object o )

Source from the content-addressed store, hash-verified

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

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