@Override public int hashCode() { final int prime = 773; int hashCode = super.hashCode(); if (isSetMetaId()) { hashCode += prime * getMetaId().hashCode(); } if (isSetId()) { hashCode += prime * getId().hashCode(); } if (isSetName()) { hashCode += prime * getName().hashCode(); } if (isSetSBOTerm()) { hashCode += prime * getSBOTerm(); } if (elementNamespace != null) { hashCode = prime * hashCode + elementNamespace.hashCode(); } if (declaredNamespaces != null) { hashCode = prime * hashCode + declaredNamespaces.hashCode(); } // Notes, Annotation and extension SBasePlugins are taken into account in // AbstractTreeNode.hashCode() // as they are part of the children returned by #getChildAt(int i) return hashCode + prime * getLevelAndVersion().hashCode(); }
equals &= sbase.isSetId() == isSetId(); if (equals && isSetId()) { equals &= sbase.getId().equals(getId());