| Package | Description |
|---|---|
| com.annimon.stream |
| Modifier and Type | Method and Description |
|---|---|
static <T> ComparatorCompat.Chain<T> |
ComparatorCompat.chain(Comparator<T> comparator)
Returns a
ComparatorCompat.Chain class instance for build comparators. |
ComparatorCompat.Chain<T> |
ComparatorCompat.Chain.reversed()
Reverses the order of comparator.
|
ComparatorCompat.Chain<T> |
ComparatorCompat.Chain.thenComparing(Comparator<? super T> other)
Adds the given comparator to the chain.
|
<U extends Comparable<? super U>> |
ComparatorCompat.Chain.thenComparing(Function<? super T,? extends U> keyExtractor)
Adds the comparator, that uses a function for extract
a
Comparable sort key, to the chain. |
<U> ComparatorCompat.Chain<T> |
ComparatorCompat.Chain.thenComparing(Function<? super T,? extends U> keyExtractor,
Comparator<? super U> keyComparator)
Adds the comparator, that uses a function for extract
a sort key, to the chain.
|
ComparatorCompat.Chain<T> |
ComparatorCompat.Chain.thenComparingDouble(ToDoubleFunction<? super T> keyExtractor)
Adds the comparator, that uses a function for extract
a
double sort key, to the chain. |
ComparatorCompat.Chain<T> |
ComparatorCompat.Chain.thenComparingInt(ToIntFunction<? super T> keyExtractor)
Adds the comparator, that uses a function for extract
an
int sort key, to the chain. |
ComparatorCompat.Chain<T> |
ComparatorCompat.Chain.thenComparingLong(ToLongFunction<? super T> keyExtractor)
Adds the comparator, that uses a function for extract
a
long sort key, to the chain. |
Copyright © 2017. All rights reserved.