@Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final MavenVersion other = (MavenVersion) obj;
        if ((this.majorVersion == null) ? (other.majorVersion != null) : !this.majorVersion.equals(other.majorVersion)) {
            return false;
        }
        if ((this.featureVersion == null) ? (other.featureVersion != null) : !this.featureVersion.equals(other.featureVersion)) {
            return false;
        }
        if ((this.bugfixVersion == null) ? (other.bugfixVersion != null) : !this.bugfixVersion.equals(other.bugfixVersion)) {
            return false;
        }
        if (this.snapshot != other.snapshot) {
            return false;
        }
        return true;
    }