Package groovy.util
Class OrderBy<T>
java.lang.Object
groovy.util.OrderBy<T>
- All Implemented Interfaces:
- Serializable,- Comparator<T>
A helper class for sorting objects via a closure to return the field
 or operation on which to sort.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
- 
Constructor Details- 
OrderBypublic OrderBy()
- 
OrderBypublic OrderBy(boolean equalityCheck) 
- 
OrderBy
- 
OrderBy
- 
OrderBy
- 
OrderBy
 
- 
- 
Method Details- 
add
- 
compare- Specified by:
- comparein interface- Comparator<T>
 
- 
isEqualityCheckpublic boolean isEqualityCheck()
- 
setEqualityCheckpublic void setEqualityCheck(boolean equalityCheck) 
 
-