@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } WeldMethodKey other = (WeldMethodKey) obj; if (declaringClass == null) { if (other.declaringClass != null) { return false; } } else if (!declaringClass.equals(other.declaringClass)) { return false; } if (signature == null) { if (other.signature != null) { return false; } } else if (!signature.equals(other.signature)) { return false; } return true; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((declaringClass == null) ? 0 : declaringClass.hashCode()); result = prime * result + ((signature == null) ? 0 : signature.hashCode()); return result; }