public boolean equals()

in rest/rest-api/src/main/java/org/apache/brooklyn/rest/domain/TypeSummary.java [219:285]


    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        TypeSummary other = (TypeSummary) obj;
        if (aliases == null) {
            if (other.aliases != null)
                return false;
        } else if (!aliases.equals(other.aliases))
            return false;
        if (containingBundle == null) {
            if (other.containingBundle != null)
                return false;
        } else if (!containingBundle.equals(other.containingBundle))
            return false;
        if (deprecated != other.deprecated)
            return false;
        if (description == null) {
            if (other.description != null)
                return false;
        } else if (!description.equals(other.description))
            return false;
        if (disabled != other.disabled)
            return false;
        if (displayName == null) {
            if (other.displayName != null)
                return false;
        } else if (!displayName.equals(other.displayName))
            return false;
        if (iconUrl == null) {
            if (other.iconUrl != null)
                return false;
        } else if (!iconUrl.equals(other.iconUrl))
            return false;
        if (kind != other.kind)
            return false;
        // don't compare "others" -- eg if "links" are set, we don't care
//        if (others == null) {
//            if (other.others != null)
//                return false;
//        } else if (!others.equals(other.others))
//            return false;
        if (supertypes == null) {
            if (other.supertypes != null)
                return false;
        } else if (!supertypes.equals(other.supertypes))
            return false;
        if (symbolicName == null) {
            if (other.symbolicName != null)
                return false;
        } else if (!symbolicName.equals(other.symbolicName))
            return false;
        if (tags == null) {
            if (other.tags != null)
                return false;
        } else if (!tags.equals(other.tags))
            return false;
        if (version == null) {
            if (other.version != null)
                return false;
        } else if (!version.equals(other.version))
            return false;
        return true;
    }