public boolean equals()

in commons-transfer/commons-transfer-http/src/main/java/org/apache/archiva/commons/transfer/http/auth/HttpAuthKey.java [45:98]


    public boolean equals( Object obj )
    {
        if ( this == obj )
        {
            return true;
        }
        if ( obj == null )
        {
            return false;
        }
        if ( getClass() != obj.getClass() )
        {
            return false;
        }
        final HttpAuthKey other = (HttpAuthKey) obj;
        if ( host == null )
        {
            if ( other.host != null )
            {
                return false;
            }
        }
        else if ( !host.equals( other.host ) )
        {
            return false;
        }
        if ( port != other.port )
        {
            return false;
        }
        if ( realm == null )
        {
            if ( other.realm != null )
            {
                return false;
            }
        }
        else if ( !realm.equals( other.realm ) )
        {
            return false;
        }
        if ( scheme == null )
        {
            if ( other.scheme != null )
            {
                return false;
            }
        }
        else if ( !scheme.equals( other.scheme ) )
        {
            return false;
        }
        return true;
    }