| java.lang.Object org.apache.commons.collections.comparators.TransformingComparator
Method Summary | |
public int | compare(Object obj1, Object obj2) Returns the result of comparing the values from the transform operation. |
TransformingComparator | public TransformingComparator(Transformer transformer)(Code) | | Constructs an instance with the given Transformer and a
ComparableComparator ComparableComparator .
Parameters: transformer - what will transform the arguments to compare |
TransformingComparator | public TransformingComparator(Transformer transformer, Comparator decorated)(Code) | | Constructs an instance with the given Transformer and Comparator.
Parameters: transformer - what will transform the arguments to compare Parameters: decorated - the decorated Comparator |
compare | public int compare(Object obj1, Object obj2)(Code) | | Returns the result of comparing the values from the transform operation.
Parameters: obj1 - the first object to transform then compare Parameters: obj2 - the second object to transform then compare negative if obj1 is less, positive if greater, zero if equal |
|
|