org.jrdf.graph.global
Class ReverseGroundedTripleComparatorImpl
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReverseGroundedTripleComparatorImpl
public ReverseGroundedTripleComparatorImpl(TripleComparator newTripleComparator)
compare
public int compare(Triple o1,
Triple o2)
- Specified by:
compare
in interface Comparator<Triple>