public boolean equals()

in src/main/java/org/apache/commons/graph/VertexPair.java [61:77]


    public boolean equals( Object obj )
    {
        if ( this == obj )
        {
            return true;
        }

        if ( obj == null || getClass() != obj.getClass() )
        {
            return false;
        }

        @SuppressWarnings( "unchecked" ) // equals() invoked against only same VertexPair type
        VertexPair<V> other = (VertexPair<V>) obj;
        return eq( head, other.getHead() )
            && eq( tail, other.getTail() );
    }