E - the type to be compared.private static class Comparators.Cascade<E> extends Object implements Comparator<E>, Serializable
seq
asks the next comparator if the current one detects equality.| Modifier and Type | Field and Description |
|---|---|
private Collection<Comparator<E>> |
seq |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
Cascade(Collection<Comparator<E>> seq) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(E obj1,
E obj2) |
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, thenComparingLongprivate static final long serialVersionUID
private final Collection<Comparator<E>> seq
Cascade(Collection<Comparator<E>> seq)
public int compare(E obj1, E obj2)
compare in interface Comparator<E>Copyright © 2012–2018 Simuline Organization (l2r). All rights reserved.