Groovy 2.2.1

groovy.util
[Java] Class OrderBy

java.lang.Object
  groovy.util.OrderBy
All Implemented Interfaces:
Comparator

public class OrderBy
extends Object

A helper class for sorting objects via a closure to return the field or operation on which to sort.

Authors:
James Strachan
Version:
\$Revision\$


Constructor Summary
OrderBy()

OrderBy(Closure closure)

OrderBy(List closures)

 
Method Summary
void add(Closure closure)

int compare(Object object1, Object object2)

boolean isEqualityCheck()

void setEqualityCheck(boolean equalityCheck)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

OrderBy

public OrderBy()


OrderBy

public OrderBy(Closure closure)


OrderBy

public OrderBy(List closures)


 
Method Detail

add

public void add(Closure closure)


compare

public int compare(Object object1, Object object2)


isEqualityCheck

public boolean isEqualityCheck()


setEqualityCheck

public void setEqualityCheck(boolean equalityCheck)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.