public class OrderBy<T> extends Object implements Comparator, Serializable
A helper class for sorting objects via a closure to return the field or operation on which to sort.
| Constructor and description |
|---|
OrderBy
() |
OrderBy
(boolean equalityCheck) |
OrderBy
(Closure closure) |
OrderBy
(Closure closure, boolean equalityCheck) |
OrderBy
(List<Closure> closures) |
OrderBy
(List<Closure> closures, boolean equalityCheck) |
| Type Params | Return Type | Name and description |
|---|---|---|
public void |
add(Closure closure) | |
public int |
compare(T object1, T object2) | |
public boolean |
isEqualityCheck() | |
public void |
setEqualityCheck(boolean equalityCheck) |
| Methods inherited from class | Name |
|---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/util/OrderBy.html