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