|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.util.ClosureComparator
public class ClosureComparator extends java.lang.Object
A Comparator which uses a closure to compare 2 values being equal
Constructor Summary | |
ClosureComparator(Closure closure)
|
Method Summary | |
---|---|
int
|
compare(java.lang.Object object1, java.lang.Object object2)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
public ClosureComparator(Closure closure)
Method Detail |
---|
public int compare(java.lang.Object object1, java.lang.Object object2)
Groovy Documentation