|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.util.OrderBy<T>
public class OrderBy<T>
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<Closure> closures)
|
Method Summary | |
---|---|
void |
add(Closure closure)
|
int |
compare(T object1,
T 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 |
Constructor Detail |
---|
public OrderBy()
public OrderBy(Closure closure)
public OrderBy(java.util.List<Closure> closures)
Method Detail |
---|
public void add(Closure closure)
public int compare(T object1, T object2)
compare
in interface java.util.Comparator<T>
|
Copyright © 2003-2010 The Codehaus. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |