net.ontopia.topicmaps.nav.utils.comparators
Class LocatorComparator
java.lang.Object
net.ontopia.topicmaps.nav.utils.comparators.LocatorComparator
- All Implemented Interfaces:
- Comparator<LocatorIF>
public class LocatorComparator
- extends Object
- implements Comparator<LocatorIF>
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<TopicIF> 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<String> tc
scopes
protected Collection<TopicIF> 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<TopicIF> 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(LocatorIF l1,
LocatorIF l2)
- Compares two LocatorIFs
- Specified by:
compare
in interface Comparator<LocatorIF>
Copyright © 2000-2012 Ontopia.