in src/main/java/org/apache/commons/graph/model/InMemoryWeightedPath.java [91:111]
public boolean equals( Object obj )
{
if ( this == obj )
{
return true;
}
if ( !super.equals( obj ) )
{
return false;
}
if ( getClass() != obj.getClass() )
{
return false;
}
@SuppressWarnings( "unchecked" ) // test against any WeightedPath typed instance
InMemoryWeightedPath<Object, Object, W> other = (InMemoryWeightedPath<Object, Object, W>) obj;
return eq( weight, other.getWeight() );
}