IDTYPE - tree item ID typeDATATYPE - tree item value typepublic final class ComparatorDefaultTreeItemWithIDData<IDTYPE,DATATYPE> extends ComparatorTreeItemData<DATATYPE,DefaultTreeItemWithID<IDTYPE,DATATYPE>>
DefaultTreeItemWithID items by their value
using an explicit Comparator.| Constructor and Description |
|---|
ComparatorDefaultTreeItemWithIDData(Comparator<? super DATATYPE> aDataComparator)
Constructor with default sort order.
|
ComparatorDefaultTreeItemWithIDData(Comparator<? super DefaultTreeItemWithID<IDTYPE,DATATYPE>> aNestedComparator,
Comparator<? super DATATYPE> aDataComparator)
Comparator with default sort order and a nested comparator.
|
ComparatorDefaultTreeItemWithIDData(ESortOrder eSortOrder,
Comparator<? super DATATYPE> aDataComparator)
Constructor with sort order.
|
ComparatorDefaultTreeItemWithIDData(ESortOrder eSortOrder,
Comparator<? super DefaultTreeItemWithID<IDTYPE,DATATYPE>> aNestedComparator,
Comparator<? super DATATYPE> aDataComparator)
Constructor with sort order and a nested comparator.
|
getPartgetPartComparator, mainComparecompare, getNestedComparator, getSortOrder, setSortOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic ComparatorDefaultTreeItemWithIDData(@Nonnull Comparator<? super DATATYPE> aDataComparator)
aDataComparator - Comparator for the data elements. May not be null.public ComparatorDefaultTreeItemWithIDData(@Nonnull ESortOrder eSortOrder, @Nonnull Comparator<? super DATATYPE> aDataComparator)
aDataComparator - Comparator for the data elements. May not be null.eSortOrder - The sort order to use. May not be null.public ComparatorDefaultTreeItemWithIDData(@Nullable Comparator<? super DefaultTreeItemWithID<IDTYPE,DATATYPE>> aNestedComparator, @Nonnull Comparator<? super DATATYPE> aDataComparator)
aNestedComparator - The nested comparator to be invoked, when the main comparison
resulted in 0.aDataComparator - The comparator for comparing the IDs. May not be null.public ComparatorDefaultTreeItemWithIDData(@Nonnull ESortOrder eSortOrder, @Nullable Comparator<? super DefaultTreeItemWithID<IDTYPE,DATATYPE>> aNestedComparator, @Nonnull Comparator<? super DATATYPE> aDataComparator)
eSortOrder - The sort order to use. May not be null.aNestedComparator - The nested comparator to be invoked, when the main comparison
resulted in 0.aDataComparator - The comparator for comparing the IDs. May not be null.Copyright © 2014–2015 Philip Helger. All rights reserved.