KEYTYPE - tree item key typeDATATYPE - tree item value typeITEMTYPE - tree item implementation type@NotThreadSafe public class ComparatorTreeItemID<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>> extends ComparatorHasID<KEYTYPE,ITEMTYPE>
ITreeItemWithID
items by their ID using an explicit Comparator.| Constructor and Description |
|---|
ComparatorTreeItemID(Comparator<? super KEYTYPE> aIDComparator)
Comparator with default sort order and no nested comparator.
|
getPartgetPartComparator, mainCompare, toStringcompare, getNestedComparator, getSortOrder, isNullValuesComeFirst, setNestedComparator, setNullValuesComeFirst, setSortOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequalspublic ComparatorTreeItemID(@Nonnull Comparator<? super KEYTYPE> aIDComparator)
aIDComparator - The comparator for comparing the IDs. May not be null.Copyright © 2014–2015 Philip Helger. All rights reserved.