DATATYPE - tree item value typeITEMTYPE - tree item implementation type@NotThreadSafe public 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.
|
| Modifier and Type | Method and Description |
|---|---|
protected DATATYPE |
getPart(ITEMTYPE aTreeItem)
Implement this method to extract the part to compare from the original
object.
|
mainComparecompare, getNestedComparator, getSortOrder, isNullValuesComeFirst, setNestedComparator, setNullValuesComeFirst, setSortOrder, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic ComparatorTreeItemDataComparable()
@Nullable protected DATATYPE getPart(@Nonnull ITEMTYPE aTreeItem)
AbstractPartComparatorComparablegetPart in class AbstractPartComparatorComparable<ITEMTYPE extends IBasicTreeItem<DATATYPE,ITEMTYPE>,DATATYPE extends Comparable<? super DATATYPE>>aTreeItem - The object to be compared. Never null.null.Copyright © 2014–2015 Philip Helger. All rights reserved.