net.ontopia.topicmaps.utils
Class TopicNameComparator
java.lang.Object
net.ontopia.topicmaps.utils.ScopedIFComparator
net.ontopia.topicmaps.utils.TopicNameComparator
- All Implemented Interfaces:
- 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
Method Summary |
int |
compare(Object o1,
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 |
compare
public int compare(Object o1,
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 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.