|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.apache.commons.collections.comparators.TransformingComparator
Decorates another Comparator with transformation behavior. That is, the
return value from the transform operation will be passed to the decorated
Comparator#compare method.
Transformer,
ComparableComparator| Constructor Summary | |
TransformingComparator(Transformer transformer)
Constructs an instance with the given Transformer and a ComparableComparator. |
|
TransformingComparator(Transformer transformer,
java.util.Comparator decorated)
Constructs an instance with the given Transformer and Comparator |
|
| Method Summary | |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Returns the result of comparing the values from the transform operation. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
equals |
| Constructor Detail |
public TransformingComparator(Transformer transformer)
transformer - what will transform the instance.
public TransformingComparator(Transformer transformer,
java.util.Comparator decorated)
decorated - the decorated Comparator| Method Detail |
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparator
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||