T - the generic type of the comparing objectpublic class ComparableComparator<T extends Comparable<T>> extends Object implements Comparator<T>, Serializable
| Constructor and Description |
|---|
ComparableComparator()
Instantiates a new comparable comparator.
|
ComparableComparator(SortOrder sortOrder)
Instantiates a new comparable comparator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(T object,
T compareWithObject) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic ComparableComparator()
public ComparableComparator(SortOrder sortOrder)
sortOrder - the sort orderpublic int compare(T object, T compareWithObject)
compare in interface Comparator<T extends Comparable<T>>Copyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.