org.jrdf.graph.global
Class ReverseGroundedTripleComparatorImpl

java.lang.Object
  extended by org.jrdf.graph.global.ReverseGroundedTripleComparatorImpl
All Implemented Interfaces:
Serializable, Comparator<Triple>, TripleComparator

public class ReverseGroundedTripleComparatorImpl
extends Object
implements TripleComparator

A different implementation of TripleComparator. Where the number of blank nodes in a triple makes it less than triples without blank nodes. Triples with the same number of blank nodes are then compared by node type.

See Also:
Serialized Form

Constructor Summary
ReverseGroundedTripleComparatorImpl(TripleComparator newTripleComparator)
           
 
Method Summary
 int compare(Triple o1, Triple o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ReverseGroundedTripleComparatorImpl

public ReverseGroundedTripleComparatorImpl(TripleComparator newTripleComparator)
Method Detail

compare

public int compare(Triple o1,
                   Triple o2)
Specified by:
compare in interface Comparator<Triple>