public class Functions extends Object
| Modifier and Type | Method and Description |
|---|---|
static <R,X,T> Function1<R,T> |
join(Function1<R,X> outer,
Function1<X,T> inner)
joins two functions with matching types to a new function
converts T to X to R
|
static <R,T1,T2,T3,A,B> |
join(Function2<R,A,B> outer,
Function2<A,T1,T2> left,
Function2<B,T2,T3> right)
joins to functions with matching types to a new function
converts T2 and T3 to X and T1 to R
|
static <R,T1,T2,X> |
join(Function2<R,T1,X> outer,
Function1<X,T2> inner)
joins to functions with matching types to a new function
converts T2 to X and T1 to R
|
static <R,T1,T2,T3,X> |
join(Function2<R,T1,X> outer,
Function2<X,T2,T3> inner)
joins to functions with matching types to a new function
converts T2 and T3 to X and T1 to R
|
static <R,T1,T2> Function2<R,T1,T2> |
swap(Function2<R,T2,T1> source)
swap function type signature without changing behavior
|
public static <R,X,T> Function1<R,T> join(Function1<R,X> outer, Function1<X,T> inner)
outer - the last applied functioninner - the first applied functionpublic static <R,T1,T2,X> Function2<R,T1,T2> join(Function2<R,T1,X> outer, Function1<X,T2> inner)
outer - the last applied functioninner - the first applied functionpublic static <R,T1,T2,T3,X> Function3<R,T1,T2,T3> join(Function2<R,T1,X> outer, Function2<X,T2,T3> inner)
outer - the last applied functioninner - the first applied functionpublic static <R,T1,T2,T3,A,B> Function3<R,T1,T2,T3> join(Function2<R,A,B> outer, Function2<A,T1,T2> left, Function2<B,T2,T3> right)
outer - the last applied functioninner - the first applied functionCopyright © 2014. All Rights Reserved.