net.ontopia.topicmaps.nav.utils.comparators
Class LocatorComparator
java.lang.Object
net.ontopia.topicmaps.nav.utils.comparators.LocatorComparator
- All Implemented Interfaces:
- Comparator
public class LocatorComparator
- extends Object
- implements Comparator
INTERNAL: A Comparator for ordering locators alphabetically.
Constructor Summary |
LocatorComparator()
Empty constructor, used on application startup to initialise a
"fast" comparator which will compare Locators using no context. |
LocatorComparator(Collection context)
Constructor used to make a comparator which will compare Locators
using the context provided. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tc
protected Comparator tc
scopes
protected Collection scopes
LocatorComparator
public LocatorComparator()
- Empty constructor, used on application startup to initialise a
"fast" comparator which will compare Locators using no context.
LocatorComparator
public LocatorComparator(Collection context)
- Constructor used to make a comparator which will compare Locators
using the context provided. This implementation doesn't use the
context yet.
compare
public int compare(Object o1,
Object o2)
- Compares two LocatorIFs
- Specified by:
compare
in interface Comparator
Copyright © 2000-2012 Ontopia.