| Package | Description |
|---|---|
| org.danekja.java.misc.serializable |
This package contains serializable versions of
FunctionalInterfaces from the JDK not in
java.util.function |
| org.danekja.java.util.function.serializable |
This package contains serializable versions of JDK's
java.util.function package |
| Modifier and Type | Method and Description |
|---|---|
static <T,U extends Comparable<? super U>> |
SerializableComparator.comparing(SerializableFunction<? super T,? extends U> keyExtractor)
Accepts a function that extracts a
Comparable sort key from a type T, and returns a Comparator<T> that compares by that sort key. |
static <T,U> SerializableComparator<T> |
SerializableComparator.comparing(SerializableFunction<? super T,? extends U> keyExtractor,
SerializableComparator<? super U> keyComparator)
Accepts a function that extracts a sort key from a type
T, and
returns a SerializableComparator<T> that compares by that sort
key using the specified SerializableComparator. |
default <U extends Comparable<? super U>> |
SerializableComparator.thenComparing(SerializableFunction<? super T,? extends U> keyExtractor)
Returns a lexicographic-order comparator with a function that
extracts a
Comparable sort key. |
default <U> SerializableComparator<T> |
SerializableComparator.thenComparing(SerializableFunction<? super T,? extends U> keyExtractor,
SerializableComparator<? super U> keyComparator)
Returns a lexicographic-order comparator with a function that
extracts a key to be compared with the given
SerializableComparator. |
| Modifier and Type | Method and Description |
|---|---|
default <V> SerializableFunction<T,V> |
SerializableFunction.andThen(SerializableFunction<? super R,? extends V> after)
Returns a composed function that first applies this function to
its input, and then applies the
after function to the result. |
default <V> SerializableFunction<V,R> |
SerializableFunction.compose(SerializableFunction<? super V,? extends T> before)
Returns a composed function that first applies the
before
function to its input, and then applies this function to the result. |
static <T> SerializableFunction<T,T> |
SerializableFunction.identity()
Returns a function that always returns its input argument.
|
| Modifier and Type | Method and Description |
|---|---|
default <V> SerializableFunction<T,V> |
SerializableFunction.andThen(SerializableFunction<? super R,? extends V> after)
Returns a composed function that first applies this function to
its input, and then applies the
after function to the result. |
default <V> SerializableBiFunction<T,U,V> |
SerializableBiFunction.andThen(SerializableFunction<? super R,? extends V> after)
Returns a composed function that first applies this function to
its input, and then applies the
after function to the result. |
default <V> SerializableFunction<V,R> |
SerializableFunction.compose(SerializableFunction<? super V,? extends T> before)
Returns a composed function that first applies the
before
function to its input, and then applies this function to the result. |
Copyright © 2019. All rights reserved.