Groovy 2.2.1

groovy.util
[Java] Class ClosureComparator

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

public class ClosureComparator
extends Object

A Comparator which uses a closure to compare 2 values being equal

Authors:
James Strachan
Version:
\$Revision\$


Constructor Summary
ClosureComparator(Closure closure)

 
Method Summary
int compare(Object object1, Object object2)

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

Constructor Detail

ClosureComparator

public ClosureComparator(Closure closure)


 
Method Detail

compare

public int compare(Object object1, Object object2)


 

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