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
compare
method.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
decorated | The decorated comparator. | ||||||||||
transformer | The transformer being used. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an instance with the given Transformer and a
ComparableComparator . | |||||||||||
Constructs an instance with the given Transformer and Comparator.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the result of comparing the values from the transform operation.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.util.Comparator
|
Constructs an instance with the given Transformer and a
ComparableComparator
.
transformer | what will transform the arguments to compare
|
---|
Constructs an instance with the given Transformer and Comparator.
transformer | what will transform the arguments to compare |
---|---|
decorated | the decorated Comparator |
Returns the result of comparing the values from the transform operation.
obj1 | the first object to transform then compare |
---|---|
obj2 | the second object to transform then compare |