DATATYPE - tree item value typeITEMTYPE - tree item implementation typepublic class ComparatorTreeItemDataComparable<DATATYPE extends Comparable<? super DATATYPE>,ITEMTYPE extends IBasicTreeItem<DATATYPE,ITEMTYPE>> extends AbstractPartComparatorComparable<ITEMTYPE,DATATYPE>
IBasicTreeItem items by their value using an
comparable value types.ITreeItem and
ITreeItemWithID.| Constructor and Description |
|---|
ComparatorTreeItemDataComparable()
Comparator with default sort order.
|
ComparatorTreeItemDataComparable(Comparator<? super ITEMTYPE> aNestedComparator)
Comparator with default sort order and a nested comparator.
|
ComparatorTreeItemDataComparable(ESortOrder eSortOrder)
Constructor with sort order.
|
ComparatorTreeItemDataComparable(ESortOrder eSortOrder,
Comparator<? super ITEMTYPE> aNestedComparator)
Comparator with sort order and a nested comparator.
|
| Modifier and Type | Method and Description |
|---|---|
protected DATATYPE |
getPart(ITEMTYPE aTreeItem) |
mainComparecompare, getSortOrder, setSortOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic ComparatorTreeItemDataComparable()
public ComparatorTreeItemDataComparable(@Nonnull ESortOrder eSortOrder)
eSortOrder - The sort order to use. May not be null.public ComparatorTreeItemDataComparable(@Nullable Comparator<? super ITEMTYPE> aNestedComparator)
aNestedComparator - The nested comparator to be invoked, when the main comparison
resulted in 0.public ComparatorTreeItemDataComparable(@Nonnull ESortOrder eSortOrder, @Nullable Comparator<? super ITEMTYPE> aNestedComparator)
eSortOrder - The sort order to use. May not be null.aNestedComparator - The nested comparator to be invoked, when the main comparison
resulted in 0.@Nullable protected DATATYPE getPart(@Nonnull ITEMTYPE aTreeItem)
getPart in class AbstractPartComparatorComparable<ITEMTYPE extends IBasicTreeItem<DATATYPE,ITEMTYPE>,DATATYPE extends Comparable<? super DATATYPE>>Copyright © 2006–2015 phloc systems. All rights reserved.