DATATYPE - tree item value typepublic final class ComparatorDefaultTreeItemWithIDData<IDTYYPE,DATATYPE> extends ComparatorTreeItemData<DATATYPE,DefaultTreeItemWithID<IDTYYPE,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<IDTYYPE,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<IDTYYPE,DATATYPE>> aNestedComparator,
Comparator<? super DATATYPE> aDataComparator)
Constructor with sort order and a nested comparator.
|
getPartmainComparecompare, 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<IDTYYPE,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<IDTYYPE,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 © 2006–2015 phloc systems. All rights reserved.