| Package | Description |
|---|---|
| org.eclipse.collections.api.block.comparator | |
| org.eclipse.collections.api.block.factory |
| Modifier and Type | Class and Description |
|---|---|
class |
FunctionComparator<T,V> |
| Constructor and Description |
|---|
FunctionComparator(Function<? super T,? extends V> function,
SerializableComparator<V> comparator) |
| Modifier and Type | Method and Description |
|---|---|
static <T,V extends Comparable<? super V>> |
SerializableComparators.byFunction(Function<? super T,? extends V> function) |
static <T,V> SerializableComparator<T> |
SerializableComparators.byFunction(Function<? super T,? extends V> function,
SerializableComparator<V> comparator) |
static <T> SerializableComparator<T> |
SerializableComparators.naturalOrder()
Uses the natural compareTo methods of the objects which will throw if there are any nulls.
|
static <T> SerializableComparator<T> |
SerializableComparators.reverse(SerializableComparator<T> comparator) |
static <T> SerializableComparator<T> |
SerializableComparators.reverseNaturalOrder()
Uses the natural compareTo methods of the objects which will throw if there are any nulls.
|
| Modifier and Type | Method and Description |
|---|---|
static <T,V> SerializableComparator<T> |
SerializableComparators.byFunction(Function<? super T,? extends V> function,
SerializableComparator<V> comparator) |
static <T> SerializableComparator<T> |
SerializableComparators.reverse(SerializableComparator<T> comparator) |
Copyright © 2004–2022. All rights reserved.