/* * (non-Javadoc) * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof NodeAnnotationInfo)) { return false; } NodeAnnotationInfo other = (NodeAnnotationInfo) obj; if (annotation == null) { if (other.annotation != null) { return false; } } else if (!annotation.equals(other.annotation)) { return false; } if (node == null) { if (other.node != null) { return false; } } else if (!node.equals(other.node)) { return false; } if (which == null) { if (other.which != null) { return false; } } else if (!which.equals(other.which)) { return false; } return true; }
/* * (non-Javadoc) * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((annotation == null) ? 0 : annotation.hashCode()); result = prime * result + ((node == null) ? 0 : node.hashCode()); result = prime * result + ((which == null) ? 0 : which.hashCode()); return result; }