|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.util.OrderBy
public class OrderBy extends java.lang.Object
A helper class for sorting objects via a closure to return the field or operation on which to sort.
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)
|
boolean
|
isEqualityCheck()
|
void
|
setEqualityCheck(boolean equalityCheck)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
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)
public boolean isEqualityCheck()
public void setEqualityCheck(boolean equalityCheck)
Groovy Documentation