@FunctionalInterface public interface Function2<T1,T2,R> extends java.util.function.BiFunction<T1,T2,R>
Modifier and Type | Method and Description |
---|---|
R |
apply(T1 v1,
T2 v2)
Apply this function to the arguments.
|
default R |
apply(Tuple2<? extends T1,? extends T2> args)
Apply this function to the arguments.
|
default Function1<T2,R> |
applyPartially(T1 v1)
Partially apply this function to the arguments.
|
default Function0<R> |
applyPartially(T1 v1,
T2 v2)
Partially apply this function to the arguments.
|
default Function1<T2,R> |
applyPartially(Tuple1<? extends T1> args)
Partially apply this function to the arguments.
|
default Function0<R> |
applyPartially(Tuple2<? extends T1,? extends T2> args)
Partially apply this function to the arguments.
|
default Function1<T2,R> |
curry(T1 v1)
Deprecated.
- Use
applyPartially(Object) instead. |
default Function0<R> |
curry(T1 v1,
T2 v2)
Deprecated.
- Use
applyPartially(Object, Object) instead. |
default Function1<T2,R> |
curry(Tuple1<? extends T1> args)
Deprecated.
- Use
applyPartially(Tuple1) instead. |
default Function0<R> |
curry(Tuple2<? extends T1,? extends T2> args)
Deprecated.
- Use
applyPartially(Tuple2) instead. |
static <T1,T2,R> Function2<T1,T2,R> |
from(java.util.function.BiFunction<? super T1,? super T2,? extends R> function)
Convert to this function to a
BiFunction . |
default java.util.function.BiFunction<T1,T2,R> |
toBiFunction()
Convert this function to a
BiFunction . |
andThen
default R apply(Tuple2<? extends T1,? extends T2> args)
args
- The arguments as a tuple.R apply(T1 v1, T2 v2)
apply
in interface java.util.function.BiFunction<T1,T2,R>
default java.util.function.BiFunction<T1,T2,R> toBiFunction()
BiFunction
.static <T1,T2,R> Function2<T1,T2,R> from(java.util.function.BiFunction<? super T1,? super T2,? extends R> function)
BiFunction
.default Function1<T2,R> applyPartially(T1 v1)
default Function0<R> applyPartially(T1 v1, T2 v2)
default Function1<T2,R> applyPartially(Tuple1<? extends T1> args)
default Function0<R> applyPartially(Tuple2<? extends T1,? extends T2> args)
@Deprecated default Function1<T2,R> curry(T1 v1)
applyPartially(Object)
instead.@Deprecated default Function0<R> curry(T1 v1, T2 v2)
applyPartially(Object, Object)
instead.@Deprecated default Function1<T2,R> curry(Tuple1<? extends T1> args)
applyPartially(Tuple1)
instead.@Deprecated default Function0<R> curry(Tuple2<? extends T1,? extends T2> args)
applyPartially(Tuple2)
instead.Copyright © 2016. All Rights Reserved.