org.jrdf.query.relation.type
Class TypeComparatorImpl

java.lang.Object
  extended by org.jrdf.query.relation.type.TypeComparatorImpl
All Implemented Interfaces:
Serializable, Comparator<NodeType>, TypeComparator

public final class TypeComparatorImpl
extends Object
implements TypeComparator

Compares only the type of attributes.

Version:
$Revision:$
Author:
Andrew Newman
See Also:
Serialized Form

Constructor Summary
TypeComparatorImpl(NodeTypeComparator nodeTypeComparator)
           
 
Method Summary
 int compare(NodeType type1, NodeType type2)
           
 
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

TypeComparatorImpl

public TypeComparatorImpl(NodeTypeComparator nodeTypeComparator)
Method Detail

compare

public int compare(NodeType type1,
                   NodeType type2)
Specified by:
compare in interface Comparator<NodeType>