Package groovy.util
Class OrderBy<T>
java.lang.Object
groovy.util.OrderBy<T>
- All Implemented Interfaces:
Comparator<T>
A helper class for sorting objects via a closure to return the field
or operation on which to sort.
- Version:
- $Revision$
- Author:
- James Strachan
-
Constructor Summary
Constructors -
Method Summary
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
OrderBy
public OrderBy() -
OrderBy
-
OrderBy
-
-
Method Details
-
add
-
compare
- Specified by:
compare
in interfaceComparator<T>
-
isEqualityCheck
public boolean isEqualityCheck() -
setEqualityCheck
public void setEqualityCheck(boolean equalityCheck)
-