T
- Type of objects that may be compared by this comparatorpublic class ChainingComparator<T> extends Object implements Comparator<T>
Constructor and Description |
---|
ChainingComparator(List<Comparator<T>> comparators)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(T o1,
T o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public ChainingComparator(List<Comparator<T>> comparators)
comparators
- Comparators to chainpublic int compare(T o1, T o2)
compare
in interface Comparator<T>
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.