Overview | Package | Class | Deprecated | Index | Help
| Groovy 1.7.0
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## groovy.util
Class OrderBy

    java.lang.Object
      groovy.util.OrderBy

All Implemented Interfaces:
  Comparator

    class OrderBy
    extends Object

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

author:
  James Strachan

version:
  $Revision: 16873 $

Constructor Summary
`OrderBy()`
`OrderBy(Closure closure)`
`OrderBy(List closures)`

Method Summary
`void` | `add(Closure closure)`
`int` | `compare(T object1, T object2)`

Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, 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(T object1, T object2)

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