Lines Matching refs:comparator
22 import java.util.Comparator;
28 final ImmutableList<Comparator<? super T>> comparators;
30 CompoundOrdering(Comparator<? super T> primary,
31 Comparator<? super T> secondary) {
33 = ImmutableList.<Comparator<? super T>>of(primary, secondary);
36 CompoundOrdering(Iterable<? extends Comparator<? super T>> comparators) {
40 CompoundOrdering(List<? extends Comparator<? super T>> comparators,
41 Comparator<? super T> lastComparator) {
42 this.comparators = new ImmutableList.Builder<Comparator<? super T>>()
47 for (Comparator<? super T> comparator : comparators) {
48 int result = comparator.compare(left, right);