public class FieldComparatorStack<T>
extends java.lang.Object
implements java.util.Comparator<T>
This class represents a list of comparators. The first Comparator takes precedence,
and each time a Comparator returns 0, the next one is attempted. If all comparators
return 0 the final result will be 0.
Constructor Summary
Constructors
Constructor and Description
FieldComparatorStack(java.util.List<? extends java.util.Comparator<? super T>> comparators)