Uses of Interface
org.eclipse.collections.api.block.SerializableComparator
Package
Description
This package contains implementations of the
SerializableComparator
interface.This package contains implementations of the
SerializableComparator
interface to compare primitive double, int and long.This package contains factory implementations for
Function
, Predicate
, SerializableComparator
and Procedure
.-
Uses of SerializableComparator in org.eclipse.collections.api.block.comparator
ModifierConstructorDescriptionFunctionComparator
(Function<? super T, ? extends V> function, SerializableComparator<V> comparator) -
Uses of SerializableComparator in org.eclipse.collections.api.block.factory
Modifier and TypeMethodDescriptionstatic <T,
V extends Comparable<? super V>>
SerializableComparator<T>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 TypeMethodDescriptionstatic <T,
V> SerializableComparator<T> SerializableComparators.byFunction
(Function<? super T, ? extends V> function, SerializableComparator<V> comparator) static <T> SerializableComparator<T>
SerializableComparators.reverse
(SerializableComparator<T> comparator) -
Uses of SerializableComparator in org.eclipse.collections.impl.block.comparator
Modifier and TypeClassDescriptionclass
FunctionComparator<T,
V> SimpleComparator
that uses aFunction
to select a value from the underlying object and compare it against a known value to determine ordering. -
Uses of SerializableComparator in org.eclipse.collections.impl.block.comparator.primitive
Modifier and TypeClassDescriptionclass
A Comparator which takes a BooleanFunction to compare a primitive boolean value retrieved from an object.class
A Comparator which takes a ByteFunction to compare a primitive byte value retrieved from an object.class
A Comparator which takes a CharFunction to compare a primitive char value retrieved from an object.class
A Comparator which takes a DoubleFunction to compare a primitive double value retrieved from an object.class
A Comparator which takes a FloatFunction to compare a primitive float value retrieved from an object.class
A Comparator which takes a IntFunction to compare a primitive int value retrieved from an object.class
A Comparator which takes a LongFunction to compare a primitive long value retrieved from an object.class
A Comparator which takes a ShortFunction to compare a primitive short value retrieved from an object. -
Uses of SerializableComparator in org.eclipse.collections.impl.block.factory
Modifier and TypeMethodDescriptionstatic SerializableComparator<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
(Comparator<? super T> comparator) Creates a comparator for pairs by using an existing comparator that only compares the first element of the pairstatic <T> SerializableComparator<T>
Comparators.byFloatFunction
(FloatFunction<T> function) static <T,
V extends Comparable<? super V>>
SerializableComparator<T>Comparators.byFunction
(Function<? super T, ? extends V> function) static <T,
V> SerializableComparator<T> Comparators.byFunction
(Function<? super T, ? extends V> function, Comparator<V> comparator) Original signature accepted a Comparator which may not be Serializable.static <T,
V extends Comparable<? super V>>
SerializableComparator<T>Comparators.byFunctionNullsFirst
(Function<? super T, ? extends V> function) static <T,
V extends Comparable<? super V>>
SerializableComparator<T>Comparators.byFunctionNullsLast
(Function<? super T, ? extends V> function) 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
(Comparator<? super T> comparator) Creates a comparator for pairs by using an existing comparator that only compares the second element of the pairstatic <T> SerializableComparator<T>
Comparators.byShortFunction
(ShortFunction<T> function) static <T> SerializableComparator<T>
Comparators.chain
(Comparator<T>... comparators) static <T> SerializableComparator<T>
Comparators.comparableComparator()
static SerializableComparator<Collection<?>>
Comparators.descendingCollectionSizeComparator()
static <T,
V extends Comparable<? super V>>
SerializableComparator<T>Comparators.fromFunctions
(Function<? super T, ? extends V> one) static <T,
V1 extends Comparable<? super V1>, V2 extends Comparable<? super V2>>
SerializableComparator<T>Comparators.fromFunctions
(Function<? super T, ? extends V1> one, Function<? super T, ? extends V2> two) static <T,
V1 extends Comparable<? super V1>, V2 extends Comparable<? super V2>, V3 extends Comparable<? super V3>>
SerializableComparator<T>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,
V extends Comparable<? super V>>
SerializableComparator<T>Comparators.originalByFunction
(Function<? super T, ? extends V> function) Deprecated.static <T,
V> SerializableComparator<T> Comparators.originalByFunction
(Function<? super T, ? extends V> function, Comparator<V> comparator) Deprecated.static <T> SerializableComparator<T>
Comparators.originalNaturalOrder()
Deprecated.static <T> SerializableComparator<T>
Comparators.originalReverseNaturalOrder()
Deprecated.static <T> SerializableComparator<SortedSetIterable<T>>
Comparators.powerSet()
static <T> SerializableComparator<T>
Comparators.reverse
(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
(Comparator<T> notNullSafeComparator) static <T> SerializableComparator<T>
Comparators.safeNullsLow
(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)