@FunctionalInterface
public interface Function1<T1,R>
Modifier and Type | Method and Description |
---|---|
default <V> Function1<T1,V> |
andThen(Function1<? super R,? extends V> f) |
R |
apply(T1 t1) |
static <T> Function1<T,T> |
identity()
Returns a function that always returns its input argument.
|
static <T> Function1<T,T> identity()
T
- the type of the input and output objects to the function