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

Method equals

chapter24/src/main/java/com/seaofnodes/simple/util/Ary.java:212–221  ·  view source on GitHub ↗
( Object o )

Source from the content-addressed store, hash-verified

210 // underlying array. If the hashCode() is used (e.g., inserting into a
211 // HashMap) and the then the array changes, the hashCode() will change also.
212 @Override public boolean equals( Object o ) {
213 if( this==o ) return true;
214 if( !(o instanceof Ary ary) ) return false;
215 if( _len != ary._len ) return false;
216 if( _es == ary._es ) return true;
217 for( int i=0; i<_len; i++ )
218 if( !(_es[i]==null ? (ary._es[i] == null) : _es[i].equals(ary._es[i])) )
219 return false;
220 return true;
221 }
222 @Override public int hashCode( ) {
223 int sum=_len;
224 for( int i=0; i<_len; i++ )

Callers 15

runMethod · 0.45
buildMethod · 0.45
computeMethod · 0.45
loadMethod · 0.45
storeMethod · 0.45
mainMethod · 0.45
testArgCountMethod · 0.45
pMethod · 0.45
toStringMethod · 0.45
execMethod · 0.45
evaluateMethod · 0.45
findSingleCFGOutMethod · 0.45

Calls

no outgoing calls

Tested by 15

runMethod · 0.36
buildMethod · 0.36
computeMethod · 0.36
loadMethod · 0.36
storeMethod · 0.36
mainMethod · 0.36
testArgCountMethod · 0.36
pMethod · 0.36
toStringMethod · 0.36
execMethod · 0.36
evaluateMethod · 0.36
findSingleCFGOutMethod · 0.36