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