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

Method equals

chapter11/src/main/java/com/seaofnodes/simple/type/Type.java:112–118  ·  view source on GitHub ↗
( Object o )

Source from the content-addressed store, hash-verified

110 int hash() { return _type; }
111
112 @Override
113 public final boolean equals( Object o ) {
114 if( o==this ) return true;
115 if( !(o instanceof Type t)) return false;
116 if( _type != t._type ) return false;
117 return eq(t);
118 }
119 // Overridden in subclasses; subclass can assume "this!=t" and java classes are same
120 boolean eq(Type t) { return true; }
121

Callers 15

execMethod · 0.45
lookupMethod · 0.45
getStructMethod · 0.45
similarMessagesMethod · 0.45
sameStackTraceOriginMethod · 0.45
cleanVariablesMethod · 0.45
doAllReplacementsMethod · 0.45
reduceMethod · 0.45
neqMethod · 0.45
typeMethod · 0.45
xmeetMethod · 0.45
eqMethod · 0.45

Calls 1

eqMethod · 0.95

Tested by 9

execMethod · 0.36
lookupMethod · 0.36
getStructMethod · 0.36
similarMessagesMethod · 0.36
sameStackTraceOriginMethod · 0.36
cleanVariablesMethod · 0.36
doAllReplacementsMethod · 0.36
reduceMethod · 0.36
neqMethod · 0.36