public class DefaultTermComparator<T extends eu.etaxonomy.cdm.model.common.DefinedTermBase>
extends java.lang.Object
implements java.util.Comparator<T>
Comparator
for DefinedTermBase
objects based on the term's label.
The compare algorithm compares a term's label. Example: If used on an unsorted list of terms, the
list will be alphabetically sorted by label afterwards.Constructor and Description |
---|
DefaultTermComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(T o1,
T o2) |
Copyright © 2007-2018. All Rights Reserved.