public class OccurrenceComparator extends Object implements Comparator<OccurrenceIF>
| Modifier and Type | Field and Description |
|---|---|
protected Comparator<TopicIF> |
tc |
| Constructor and Description |
|---|
OccurrenceComparator()
Empty constructor, used on application startup to initialise a
"fast" comparator which will compare Occurrences using no
context.
|
OccurrenceComparator(Collection<TopicIF> baseNameContext)
Constructor used to make a comparator which will compare
Occurrences using the context provided.
|
OccurrenceComparator(Collection<TopicIF> baseNameContext,
Collection<TopicIF> variantContext)
Constructor used to make a comparator which will compare
Occurrences using the context provided.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(OccurrenceIF oc1,
OccurrenceIF oc2)
Compares two OccurrenceIFs.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprotected Comparator<TopicIF> tc
public OccurrenceComparator()
public OccurrenceComparator(Collection<TopicIF> baseNameContext)
public OccurrenceComparator(Collection<TopicIF> baseNameContext, Collection<TopicIF> variantContext)
public int compare(OccurrenceIF oc1, OccurrenceIF oc2)
compare in interface Comparator<OccurrenceIF>