public class TransformingComparator<I,O> extends Object implements Comparator<I>, Serializable
This class is Serializable from Commons Collections 4.0.
|Constructor and Description|
Constructs an instance with the given Transformer and a
Constructs an instance with the given Transformer and Comparator.
|Modifier and Type||Method and Description|
Returns the result of comparing the values from the transform operation.
Implement a hash code for this comparator that is consistent with
public TransformingComparator(Transformer<? super I,? extends O> transformer)
transformer- what will transform the arguments to
public int hashCode()
trueiff that Object is is a
Comparatorwhose ordering is known to be equivalent to mine.
This implementation returns
that is a
whose attributes are equal to mine.
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.