@FunctionalInterface public interface Function1<T1,R> extends java.util.function.Function<T1,R>
Modifier and Type | Method and Description |
---|---|
R |
apply(T1 v1)
Apply this function to the arguments.
|
default R |
apply(Tuple1<? extends T1> args)
Apply this function to the arguments.
|
default Function0<R> |
applyPartially(T1 v1)
Partially apply this function to the arguments.
|
default Function0<R> |
applyPartially(Tuple1<? extends T1> args)
Partially apply this function to the arguments.
|
default Function0<R> |
curry(T1 v1)
Deprecated.
- Use
applyPartially(Object) instead. |
default Function0<R> |
curry(Tuple1<? extends T1> args)
Deprecated.
- Use
applyPartially(Tuple1) 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 . |
andThen, compose, identity
default R apply(Tuple1<? extends T1> args)
args
- The arguments as a tuple.R apply(T1 v1)
apply
in interface java.util.function.Function<T1,R>
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 © 2016. All Rights Reserved.