Package | Description |
---|---|
org.eclipse.collections.impl.block.comparator |
This package contains implementations of the
SerializableComparator interface. |
org.eclipse.collections.impl.block.comparator.primitive |
This package contains implementations of the
SerializableComparator interface to compare primitive double, int and long. |
org.eclipse.collections.impl.block.factory |
This package contains factory implementations for
Function , Predicate , SerializableComparator and Procedure . |
Modifier and Type | Class | Description |
---|---|---|
class |
FunctionComparator<T,V> |
Simple
Comparator that uses a Function
to select a value from the underlying object and compare it against a known value to determine ordering. |
Modifier and Type | Class | Description |
---|---|---|
class |
BooleanFunctionComparator<T> |
A Comparator which takes a BooleanFunction to compare a primitive boolean value retrieved from an object.
|
class |
ByteFunctionComparator<T> |
A Comparator which takes a ByteFunction to compare a primitive byte value retrieved from an object.
|
class |
CharFunctionComparator<T> |
A Comparator which takes a CharFunction to compare a primitive char value retrieved from an object.
|
class |
DoubleFunctionComparator<T> |
A Comparator which takes a DoubleFunction to compare a primitive double value retrieved from an object.
|
class |
FloatFunctionComparator<T> |
A Comparator which takes a FloatFunction to compare a primitive float value retrieved from an object.
|
class |
IntFunctionComparator<T> |
A Comparator which takes a IntFunction to compare a primitive int value retrieved from an object.
|
class |
LongFunctionComparator<T> |
A Comparator which takes a LongFunction to compare a primitive long value retrieved from an object.
|
class |
ShortFunctionComparator<T> |
A Comparator which takes a ShortFunction to compare a primitive short value retrieved from an object.
|
Modifier and Type | Method | Description |
---|---|---|
static SerializableComparator<java.util.Collection<?>> |
Comparators.ascendingCollectionSizeComparator() |
|
static <T> SerializableComparator<T> |
Comparators.byBooleanFunction(BooleanFunction<T> function) |
|
static <T> SerializableComparator<T> |
Comparators.byByteFunction(ByteFunction<T> function) |
|
static <T> SerializableComparator<T> |
Comparators.byCharFunction(CharFunction<T> function) |
|
static <T> SerializableComparator<T> |
Comparators.byDoubleFunction(DoubleFunction<T> function) |
|
static <T> SerializableComparator<Pair<T,?>> |
Comparators.byFirstOfPair(java.util.Comparator<? super T> comparator) |
Creates a comparator for pairs by using an existing comparator that only compares the first element of the pair
|
static <T> SerializableComparator<T> |
Comparators.byFloatFunction(FloatFunction<T> function) |
|
static <T,V extends java.lang.Comparable<? super V>> |
Comparators.byFunction(Function<? super T,? extends V> function) |
|
static <T,V> SerializableComparator<T> |
Comparators.byFunction(Function<? super T,? extends V> function,
java.util.Comparator<V> comparator) |
|
static <T> SerializableComparator<T> |
Comparators.byIntFunction(IntFunction<T> function) |
|
static <T> SerializableComparator<T> |
Comparators.byLongFunction(LongFunction<T> function) |
|
static <T> SerializableComparator<Pair<?,T>> |
Comparators.bySecondOfPair(java.util.Comparator<? super T> comparator) |
Creates a comparator for pairs by using an existing comparator that only compares the second element of the pair
|
static <T> SerializableComparator<T> |
Comparators.byShortFunction(ShortFunction<T> function) |
|
static <T> SerializableComparator<T> |
Comparators.chain(java.util.Comparator<T>... comparators) |
|
static SerializableComparator<java.util.Collection<?>> |
Comparators.descendingCollectionSizeComparator() |
|
static <T,V extends java.lang.Comparable<? super V>> |
Comparators.fromFunctions(Function<? super T,? extends V> one) |
|
static <T,V1 extends java.lang.Comparable<? super V1>,V2 extends java.lang.Comparable<? super V2>> |
Comparators.fromFunctions(Function<? super T,? extends V1> one,
Function<? super T,? extends V2> two) |
|
static <T,V1 extends java.lang.Comparable<? super V1>,V2 extends java.lang.Comparable<? super V2>,V3 extends java.lang.Comparable<? super V3>> |
Comparators.fromFunctions(Function<? super T,? extends V1> one,
Function<? super T,? extends V2> two,
Function<? super T,? extends V3> three) |
|
static <T> SerializableComparator<T> |
Comparators.naturalOrder() |
Uses the natural compareTo methods of the objects which will throw if there are any nulls.
|
static <T> SerializableComparator<SortedSetIterable<T>> |
Comparators.powerSet() |
|
static <T> SerializableComparator<T> |
Comparators.reverse(java.util.Comparator<T> comparator) |
|
static <T> SerializableComparator<T> |
Comparators.reverseNaturalOrder() |
Uses the natural compareTo methods of the objects which will throw if there are any nulls.
|
static <T> SerializableComparator<T> |
Comparators.safeNullsHigh(java.util.Comparator<T> notNullSafeComparator) |
|
static <T> SerializableComparator<T> |
Comparators.safeNullsLow(java.util.Comparator<T> notNullSafeComparator) |
|
static <T> SerializableComparator<T> |
Functions.toBooleanComparator(BooleanFunction<T> function) |
|
static <T> SerializableComparator<T> |
Functions.toByteComparator(ByteFunction<T> function) |
|
static <T> SerializableComparator<T> |
Functions.toCharComparator(CharFunction<T> function) |
|
static <T> SerializableComparator<T> |
Functions.toDoubleComparator(DoubleFunction<T> function) |
|
static <T> SerializableComparator<T> |
Functions.toFloatComparator(FloatFunction<T> function) |
|
static <T> SerializableComparator<T> |
Functions.toIntComparator(IntFunction<T> function) |
|
static <T> SerializableComparator<T> |
Functions.toLongComparator(LongFunction<T> function) |
|
static <T> SerializableComparator<T> |
Functions.toShortComparator(ShortFunction<T> function) |
Copyright © 2004–2018. All rights reserved.