KEYTYPE - tree item key typeDATATYPE - tree item value typeITEMTYPE - tree item implementation typepublic 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 ITEMTYPE> aNestedComparator,
Comparator<? super KEYTYPE> aIDComparator)
Comparator with default sort order and a nested comparator.
|
ComparatorTreeItemID(Comparator<? super KEYTYPE> aIDComparator)
Comparator with default sort order and no nested comparator.
|
ComparatorTreeItemID(ESortOrder eSortOrder,
Comparator<? super ITEMTYPE> aNestedComparator,
Comparator<? super KEYTYPE> aIDComparator)
Constructor with sort order and a nested comparator.
|
ComparatorTreeItemID(ESortOrder eSortOrder,
Comparator<? super KEYTYPE> aIDComparator)
Constructor with sort order and no nested comparator.
|
getPartmainComparecompare, getSortOrder, setSortOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic ComparatorTreeItemID(@Nonnull Comparator<? super KEYTYPE> aIDComparator)
aIDComparator - The comparator for comparing the IDs. May not be null.public ComparatorTreeItemID(@Nonnull ESortOrder eSortOrder, @Nonnull Comparator<? super KEYTYPE> aIDComparator)
eSortOrder - The sort order to use. May not be null.aIDComparator - The comparator for comparing the IDs. May not be null.public ComparatorTreeItemID(@Nullable Comparator<? super ITEMTYPE> aNestedComparator, @Nonnull Comparator<? super KEYTYPE> aIDComparator)
aNestedComparator - The nested comparator to be invoked, when the main comparison
resulted in 0.aIDComparator - The comparator for comparing the IDs. May not be null.public ComparatorTreeItemID(@Nonnull ESortOrder eSortOrder, @Nullable Comparator<? super ITEMTYPE> aNestedComparator, @Nonnull Comparator<? super KEYTYPE> aIDComparator)
eSortOrder - The sort order to use. May not be null.aNestedComparator - The nested comparator to be invoked, when the main comparison
resulted in 0.aIDComparator - The comparator for comparing the IDs. May not be null.Copyright © 2006–2015 phloc systems. All rights reserved.