@Override publicint hashCode() { finalint prime = 31; int result = 1;
result = prime * result + Arrays.hashCode(annotations);
result = prime * result + ((base == null) ? 0 : base.hashCode());
result = prime * result + Arrays.deepHashCode(evaluatedParameters);
result = prime * result + ((methodInfo == null) ? 0 : methodInfo.hashCode()); return result;
}
@Override publicboolean equals(Object obj) { if (this == obj) { returntrue;
} if (obj == null) { returnfalse;
} if (getClass() != obj.getClass()) { returnfalse;
}
MethodReference other = (MethodReference) obj; if (!Arrays.equals(annotations, other.annotations)) { returnfalse;
} if (base == null) { if (other.base != null) { returnfalse;
}
} elseif (!base.equals(other.base)) { returnfalse;
} if (!Arrays.deepEquals(evaluatedParameters, other.evaluatedParameters)) { returnfalse;
} if (methodInfo == null) { if (other.methodInfo != null) { returnfalse;
}
} elseif (!methodInfo.equals(other.methodInfo)) { returnfalse;
} returntrue;
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.