org.jrdf.graph.mem
Class NodeComparatorImpl

java.lang.Object
  extended by org.jrdf.graph.mem.NodeComparatorImpl
All Implemented Interfaces:
Serializable, Comparator<Node>, NodeComparator

public final class NodeComparatorImpl
extends Object
implements NodeComparator

Currently only support simple comparison - either by node id for blank nodes or string comparisons for URIs and Literals.

Version:
$Id: NodeComparatorImpl.java 1077 2007-01-26 19:51:12Z newmana $
Author:
Andrew Newman
See Also:
Serialized Form

Constructor Summary
NodeComparatorImpl(NodeTypeComparator nodeTypeComparator)
           
 
Method Summary
 int compare(Node o1, Node 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

NodeComparatorImpl

public NodeComparatorImpl(NodeTypeComparator nodeTypeComparator)
Method Detail

compare

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