MCPcopy Create free account
hub / github.com/beanshell/beanshell / equals

Method equals

src/bsh/org/objectweb/asm/Type.java:710–732  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

708 // --------------------------------------------------------------------------
709
710 public boolean equals (Object o) {
711 if (this == o) {
712 return true;
713 }
714 if (o == null || !(o instanceof Type)) {
715 return false;
716 }
717 Type t = (Type)o;
718 if (sort != t.sort) {
719 return false;
720 }
721 if (sort == Type.OBJECT || sort == Type.ARRAY) {
722 if (len != t.len) {
723 return false;
724 }
725 for (int i = off, j = t.off, end = i + len; i < end; i++, j++) {
726 if (buf[i] != t.buf[j]) {
727 return false;
728 }
729 }
730 }
731 return true;
732 }
733
734 public int hashCode () {
735 int hc = 13 * sort;

Callers 14

isEqualToMethod · 0.45
setMlistMethod · 0.45
valueChangedMethod · 0.45
driveToClassMethod · 0.45
initMethod · 0.45
runMethod · 0.45
serveFileMethod · 0.45
completeNameMethod · 0.45
doCommandCompletionMethod · 0.45
propertyChangeMethod · 0.45
actionPerformedMethod · 0.45
getTemplateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected