net.ontopia.topicmaps.utils
Class TopicNameComparator

java.lang.Object
  extended by net.ontopia.topicmaps.utils.ScopedIFComparator
      extended by net.ontopia.topicmaps.utils.TopicNameComparator
All Implemented Interfaces:
java.util.Comparator

public class TopicNameComparator
extends ScopedIFComparator

INTERNAL: Comparator that first sorts by type then by scope, where untyped base names are ordered before typed ones.

Since:
3.0

Field Summary
 
Fields inherited from class net.ontopia.topicmaps.utils.ScopedIFComparator
scope, subcomparator
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          INTERNAL: Compares the two ScopedIF objects for their applicability in the scope specified in the constructor.
 
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
 

Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Description copied from class: ScopedIFComparator
INTERNAL: Compares the two ScopedIF objects for their applicability in the scope specified in the constructor.

Specified by:
compare in interface java.util.Comparator
Overrides:
compare in class ScopedIFComparator
Parameters:
o1 - An object implementing ScopedIF.
o2 - An object implementing ScopedIF.
Returns:
See Comparator.compare(Object,Object)


Copyright © 2000-2012 Ontopia.