public class TransformingComparator
extends java.lang.Object
implements java.util.Comparator
compare
method.Transformer
,
ComparableComparator
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
Returns the result of comparing the values from the transform operation.
|
public TransformingComparator(Transformer transformer)
ComparableComparator
.transformer
- what will transform the arguments to compare
public TransformingComparator(Transformer transformer, java.util.Comparator decorated)
transformer
- what will transform the arguments to compare
decorated
- the decorated Comparatorpublic int compare(java.lang.Object obj1, java.lang.Object obj2)
compare
in interface java.util.Comparator
obj1
- the first object to transform then compareobj2
- the second object to transform then compare"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"