| Modifier and Type | Field and Description |
|---|---|
| pack-priv Closure | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(T
the first object to be compared. object1, T the second object to be compared. object2)Implements java. |
| closure | back to summary |
|---|---|
| pack-priv Closure<V> closure | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ClosureComparator | back to summary |
|---|---|
| public ClosureComparator(Closure<V> closure) | |
| compare | back to summary |
|---|---|
| public int compare(T object1, T object2) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |