net.ontopia.topicmaps.nav.utils.comparators
Class OccurrenceComparator
java.lang.Object
net.ontopia.topicmaps.nav.utils.comparators.OccurrenceComparator
- All Implemented Interfaces:
- Comparator
public class OccurrenceComparator
- extends Object
- implements Comparator
INTERNAL: A Comparator for ordering OccurrenceIFs alphabetically.
Constructor Summary |
OccurrenceComparator()
Empty constructor, used on application startup to initialise a
"fast" comparator which will compare Occurrences using no
context. |
OccurrenceComparator(Collection baseNameContext)
Constructor used to make a comparator which will compare
Occurrences using the context provided. |
OccurrenceComparator(Collection baseNameContext,
Collection variantContext)
Constructor used to make a comparator which will compare
Occurrences 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
OccurrenceComparator
public OccurrenceComparator()
- Empty constructor, used on application startup to initialise a
"fast" comparator which will compare Occurrences using no
context.
OccurrenceComparator
public OccurrenceComparator(Collection baseNameContext)
- Constructor used to make a comparator which will compare
Occurrences using the context provided.
OccurrenceComparator
public OccurrenceComparator(Collection baseNameContext,
Collection variantContext)
- Constructor used to make a comparator which will compare
Occurrences using the context provided.
compare
public int compare(Object o1,
Object o2)
- Compares two OccurrenceIFs.
- Specified by:
compare
in interface Comparator
Copyright © 2000-2012 Ontopia.