public boolean equals(Object other) { if (this == other) return true; if (!(other instanceof PropertyType)) { return false; } PropertyType prop = (PropertyType) other; if (!Utilities.equals(name, prop.getName())) { return false; } if (!Utilities.equals(binding, prop.getBinding())) { return false; } if (isAbstract != prop.isAbstract()) { return false; } if (!equals(getRestrictions(), prop.getRestrictions())) { return false; } if (!Utilities.equals(superType, prop.getSuper())) { return false; } if (!Utilities.equals(description, prop.getDescription())) { return false; } return true; }
name = type.getName().getLocalPart(); description = type.getDescription(); isAbstract = type.isAbstract(); restrictions = null; restrictions().addAll(type.getRestrictions());
if (isAbstract != prop.isAbstract()) { return false;
name = type.getName().getLocalPart(); description = type.getDescription(); isAbstract = type.isAbstract(); restrictions = null; restrictions().addAll(type.getRestrictions());