public class ComparatorChain extends Object implements Comparator<Object>
Comparator.compare(Object, Object).| Constructor and Description |
|---|
ComparatorChain(List<Comparator> comparators)
Instantiates a new comparator chain.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object o1,
Object o2) |
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 ComparatorChain(List<Comparator> comparators)
comparators - the comparators (can be null or empty)public int compare(Object o1, Object o2)
compare in interface Comparator<Object>Copyright © 2020 bremersee.org. All rights reserved.