MCPcopy Index your code
hub / github.com/beanshell/beanshell / equals

Method equals

src/bsh/BshMethod.java:430–448  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

428
429 // equal signature
430 public boolean equals(Object o) {
431 if (o == null) {
432 return false;
433 }
434 if (o == this) {
435 return true;
436 }
437 if (o.getClass() == this.getClass()) {
438 BshMethod m = (BshMethod)o;
439 if( !name.equals(m.name) || numArgs!=m.numArgs )
440 return false;
441 for( int i=0; i<numArgs; i++ ) {
442 if( !equal(cparamTypes[i],m.cparamTypes[i]) )
443 return false;
444 }
445 return true;
446 }
447 return false;
448 }
449
450
451 private static boolean equal(Object obj1,Object obj2) {

Callers 15

testHashCode_contractMethod · 0.95
mainMethod · 0.45
getParameterMethod · 0.45
checkKeyMethod · 0.45
getEngineByNameMethod · 0.45
getEngineByExtensionMethod · 0.45
getEngineByMimeTypeMethod · 0.45
addSpiMethod · 0.45
getScriptSourceMethod · 0.45
initializeMethod · 0.45
serviceMethod · 0.45

Calls 2

equalMethod · 0.95
getClassMethod · 0.80

Tested by 5

testHashCode_contractMethod · 0.76
mainMethod · 0.36
addTestsMethod · 0.36
mainMethod · 0.36