public boolean equals()

in brooklyn-server/utils/common/src/main/java/org/apache/brooklyn/util/maven/MavenArtifact.java [173:219]


    public boolean equals(Object obj) {
        // autogenerated code
        
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        MavenArtifact other = (MavenArtifact) obj;
        if (artifactId == null) {
            if (other.artifactId != null)
                return false;
        } else if (!artifactId.equals(other.artifactId))
            return false;
        if (classifier == null) {
            if (other.classifier != null)
                return false;
        } else if (!classifier.equals(other.classifier))
            return false;
        if (classifierFileNameMarker == null) {
            if (other.classifierFileNameMarker != null)
                return false;
        } else if (!classifierFileNameMarker.equals(other.classifierFileNameMarker))
            return false;
        if (customFileNameAfterArtifactMarker == null) {
            if (other.customFileNameAfterArtifactMarker != null)
                return false;
        } else if (!customFileNameAfterArtifactMarker.equals(other.customFileNameAfterArtifactMarker))
            return false;
        if (groupId == null) {
            if (other.groupId != null)
                return false;
        } else if (!groupId.equals(other.groupId))
            return false;
        if (packaging == null) {
            if (other.packaging != null)
                return false;
        } else if (!packaging.equals(other.packaging))
            return false;
        if (version == null) {
            if (other.version != null)
                return false;
        } else if (!version.equals(other.version))
            return false;
        return true;
    }