public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj instanceof QNodeTypeDefinition) {
QNodeTypeDefinition other = (QNodeTypeDefinition) obj;
return (name == null ? other.getName() == null : name.equals(other.getName()))
&& (primaryItemName == null ? other.getPrimaryItemName() == null : primaryItemName.equals(other.getPrimaryItemName()))
&& Arrays.equals(supertypes, other.getSupertypes())
&& mixin == other.isMixin()
&& isAbstract == other.isAbstract()
&& isQueryable == other.isQueryable()
&& orderableChildNodes == other.hasOrderableChildNodes()
&& Arrays.equals(propDefs, other.getPropertyDefs())
&& Arrays.equals(nodeDefs, other.getChildNodeDefs());
}
return false;
}