public final class ElComparatorCompound<T> extends Object implements Comparator<T>, ElComparator<T>
eg. "name, orderDate desc, id"
| Constructor and Description |
|---|
ElComparatorCompound(ElComparator<T>[] array) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(T o1,
T o2)
Compare given 2 beans.
|
int |
compareValue(Object value,
T o2)
Compare with a fixed value to a given bean.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic ElComparatorCompound(ElComparator<T>[] array)
public int compare(T o1, T o2)
ElComparatorcompare in interface ElComparator<T>compare in interface Comparator<T>public int compareValue(Object value, T o2)
ElComparatorcompareValue in interface ElComparator<T>Copyright © 2014. All Rights Reserved.