T - the keyType of elements maintained by this CollectionV - the keyType of elements maintained by this Collection@FunctionalInterface
public interface UnaryOperator<T,V>
extends java.util.function.Function<T,V>
| Modifier and Type | Method and Description |
|---|---|
default <I> UnaryOperator<T,I> |
andThen(UnaryOperator<V,I> after)
Returns a composed function that first applies this function to
its input, and then applies the
after function to the result. |
V |
apply(T k)
Type Specific get function to reduce boxing/unboxing
|
default <I> UnaryOperator<I,V> |
compose(UnaryOperator<I,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> UnaryOperator<T,T> |
identity()
Creates a Default function that returns the input provided.
|
static <T> UnaryOperator<T,T> identity()
default <I> UnaryOperator<I,V> compose(UnaryOperator<I,T> before)
before
function to its input, and then applies this function to the result.
If evaluation of either function throws an exception, it is relayed to
the caller of the composed function.I - the keyType of elements maintained by this Collectionbefore - the function that should be used firstdefault <I> UnaryOperator<T,I> andThen(UnaryOperator<V,I> after)
after function to the result.
If evaluation of either function throws an exception, it is relayed to
the caller of the composed function.I - the keyType of elements maintained by this Collectionafter - the function that should be used last