boolean (Object o) { if (o == this) return true; if (!(o instanceof LinkConstant cn)) return false; return this.type == cn.type && this.elementname.equals(cn.elementname) && this.descriptor.equals(cn.descriptor) && (this.type != CONSTANT_NameAndType || this.classname.equals(cn.classname)); }