/* * (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; }