public class MultiComparator<T>
extends java.lang.Object
implements java.util.Comparator<T>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.util.Comparator<T>> |
comparators |
Constructor and Description |
---|
MultiComparator(java.util.List<java.util.Comparator<T>> comparators) |
Modifier and Type | Method and Description |
---|---|
int |
compare(T o1,
T o2)
Compares two objects starting with first comparator; if they are equals
proceeds to the next comparator and so on.
|
Copyright © 2003-present Jodd Team