org.jrdf.graph.local.mem
Class TripleComparatorImpl

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

public final class TripleComparatorImpl
extends Object
implements TripleComparator

Provides a comparison between triples using a NodeComparator and the order of the nodes Subject, Predicate and Object.

Version:
$Id: TripleComparatorImpl.java 1804 2008-01-04 05:42:41Z newmana $
Author:
Andrew Newman
See Also:
Serialized Form

Constructor Summary
TripleComparatorImpl(NodeComparator newNodeComparator)
           
 
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

TripleComparatorImpl

public TripleComparatorImpl(NodeComparator newNodeComparator)
Method Detail

compare

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