spring-framework / org.springframework.util.comparator / CompoundComparator / <init>

<init>

CompoundComparator()

Construct a CompoundComparator with initially no Comparators. Clients must add at least one Comparator before calling the compare method or an IllegalStateException is thrown.

CompoundComparator(vararg comparators: Comparator<Any>)

Construct a CompoundComparator from the Comparators in the provided array.

All Comparators will default to ascending sort order, unless they are InvertibleComparators.

Parameters

comparators - the comparators to build into a compound comparator

See Also
InvertibleComparator