java.util.function.Function<T1,R>@FunctionalInterface
public interface Function1<T1,R>
extends java.util.function.Function<T1,R>
| Modifier and Type | Method | Description |
|---|---|---|
default R |
apply(Tuple1<? extends T1> args) |
Apply this function to the arguments.
|
R |
apply(T1 v1) |
Apply this function to the arguments.
|
default Function0<R> |
applyPartially(Tuple1<? extends T1> args) |
Partially apply this function to the arguments.
|
default Function0<R> |
applyPartially(T1 v1) |
Partially apply this function to the arguments.
|
default Function0<R> |
curry(Tuple1<? extends T1> args) |
Deprecated.
- Use
applyPartially(Tuple1) instead. |
default Function0<R> |
curry(T1 v1) |
Deprecated.
- Use
applyPartially(Object) instead. |
static <T1,R> Function1<T1,R> |
from(java.util.function.Function<? super T1,? extends R> function) |
Convert to this function from a
Function. |
default java.util.function.Function<T1,R> |
toFunction() |
Convert this function to a
Function. |
default R apply(Tuple1<? extends T1> args)
args - The arguments as a tuple.default java.util.function.Function<T1,R> toFunction()
Function.static <T1,R> Function1<T1,R> from(java.util.function.Function<? super T1,? extends R> function)
Function.default Function0<R> applyPartially(T1 v1)
default Function0<R> applyPartially(Tuple1<? extends T1> args)
@Deprecated default Function0<R> curry(T1 v1)
applyPartially(Object) instead.@Deprecated default Function0<R> curry(Tuple1<? extends T1> args)
applyPartially(Tuple1) instead.Copyright © 2018. All rights reserved.