@FunctionalInterface
public interface Function<O,R>
| Modifier and Type | Method and Description |
|---|---|
default <X> Function<X,R> |
after(Function<? super X,? extends O> other)
Executes the other function before this one.
|
R |
apply(O o) |
default <X> Function<O,X> |
before(Function<? super R,? extends X> other)
Executes the other function after this one.
|
default <T> Function<T,T> |
identity()
A function that always returns the argument value.
|
default <X> Function<O,X> before(Function<? super R,? extends X> other)
a.before(b); //a is executed before bX - The return type of the other functionother - The other function to executedefault <X> Function<X,R> after(Function<? super X,? extends O> other)
a.after(b); //b is executed before aX - The argument type of the other functionother - The other function to executedefault <T> Function<T,T> identity()
T - The type of the argument