/* * (non-Javadoc) * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((annotatedPart == null) ? 0 : annotatedPart.hashCode()); result = prime * result + ((type == null) ? 0 : type.hashCode()); return result; }
/* * (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 IFCAnnotation)) { return false; } IFCAnnotation other = (IFCAnnotation) obj; if (annotatedPart == null) { if (other.annotatedPart != null) { return false; } } else if (!annotatedPart.equals(other.annotatedPart)) { return false; } if (type != other.type) { return false; } return true; }