|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.util.ClosureComparator<T>
public class ClosureComparator<T>
A Comparator which uses a closure to compare 2 values being equal
Constructor Summary | |
---|---|
ClosureComparator(Closure closure)
|
Method Summary | |
---|---|
int |
compare(T object1,
T object2)
|
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 |
Constructor Detail |
---|
public ClosureComparator(Closure closure)
Method Detail |
---|
public int compare(T object1, T object2)
compare
in interface java.util.Comparator<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |