Class ConvertingComparator<S,T>

java.lang.Object
org.springframework.core.convert.converter.ConvertingComparator<S,T>
Type Parameters:
S - the source type
T - the target type
All Implemented Interfaces:
Comparator<S>

public class ConvertingComparator<S,T> extends Object implements Comparator<S>
A Comparator that converts values before they are compared.

The specified Converter will be used to convert each value before it is passed to the underlying Comparator.

Since:
3.2
Author:
Phillip Webb