Package org.gbif.dwc.terms
Class TermComparator
- java.lang.Object
-
- org.gbif.dwc.terms.TermComparator
-
- All Implemented Interfaces:
Comparator<Term>
public class TermComparator extends Object implements 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 Constructor Description TermComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Term o1, Term o2)
-
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 Detail
-
TermComparator
public TermComparator()
-
-