Package org.gbif.dwc.terms
Class TermComparator
java.lang.Object
org.gbif.dwc.terms.TermComparator
- All Implemented Interfaces:
Comparator<Term>
Compares terms by their qualified name.
Java enums (term classes) have a final natural order implemented which cannot be changed.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
TermComparator
public TermComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Term>
-