spring-framework / org.springframework.beans.support / PropertyComparator / <init>

<init>

PropertyComparator(sortDefinition: SortDefinition)

Create a new PropertyComparator for the given SortDefinition.

See Also
MutableSortDefinition

PropertyComparator(property: String, ignoreCase: Boolean, ascending: Boolean)

Create a PropertyComparator for the given settings.

Parameters

property - the property to compare

ignoreCase - whether upper and lower case in String values should be ignored

ascending - whether to sort ascending (true) or descending (false)