-
- All Superinterfaces:
java.util.function.Function<T1,R>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Function1<T1,R> extends java.util.function.Function<T1,R>
A function with 1 arguments.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods 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.- UseapplyPartially(Tuple1)
instead.default Function0<R>
curry(T1 v1)
Deprecated.- UseapplyPartially(Object)
instead.static <T1,R>
Function1<T1,R>from(java.util.function.Function<? super T1,? extends R> function)
Convert to this function from aFunction
.default java.util.function.Function<T1,R>
toFunction()
Convert this function to aFunction
.
-
-
-
Method Detail
-
apply
default R apply(Tuple1<? extends T1> args)
Apply this function to the arguments.- Parameters:
args
- The arguments as a tuple.
-
toFunction
default java.util.function.Function<T1,R> toFunction()
Convert this function to aFunction
.
-
from
static <T1,R> Function1<T1,R> from(java.util.function.Function<? super T1,? extends R> function)
Convert to this function from aFunction
.
-
applyPartially
default Function0<R> applyPartially(T1 v1)
Partially apply this function to the arguments.
-
applyPartially
default Function0<R> applyPartially(Tuple1<? extends T1> args)
Partially apply this function to the arguments.
-
curry
@Deprecated default Function0<R> curry(T1 v1)
Deprecated.- UseapplyPartially(Object)
instead.Partially apply this function to the arguments.
-
curry
@Deprecated default Function0<R> curry(Tuple1<? extends T1> args)
Deprecated.- UseapplyPartially(Tuple1)
instead.Partially apply this function to the arguments.
-
-