|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.util.OrderBy
A helper class for sorting objects via a closure to return the field or operation on which to sort.
Field Summary | |
(package private) java.util.List |
closures
|
Constructor Summary | |
OrderBy()
|
|
OrderBy(Closure closure)
|
|
OrderBy(java.util.List closures)
|
Method Summary | |
void |
add(Closure closure)
|
int |
compare(java.lang.Object object1,
java.lang.Object object2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
Field Detail |
java.util.List closures
Constructor Detail |
public OrderBy()
public OrderBy(Closure closure)
public OrderBy(java.util.List closures)
Method Detail |
public void add(Closure closure)
public int compare(java.lang.Object object1, java.lang.Object object2)
compare
in interface java.util.Comparator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |