public class Functions extends Object
| Modifier and Type | Method and Description |
|---|---|
static <R,X,T> Function1<R,T> |
join(Function1<R,? super X> outer,
Function1<X,? super 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,? super A,? super B> outer,
Function2<A,? super T1,? super T2> left,
Function2<B,? super T2,? super 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,? super T1,? super X> outer,
Function1<X,? super 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,? super T1,? super X> outer,
Function2<X,? super T2,? super 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,? super T2,? super T1> source)
swap function type signature without changing behavior
|
public static <R,X,T> Function1<R,T> join(Function1<R,? super X> outer, Function1<X,? super T> inner)
outer - the last applied functioninner - the first applied functionpublic static <R,T1,T2,X> Function2<R,T1,T2> join(Function2<R,? super T1,? super X> outer, Function1<X,? super 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,? super T1,? super X> outer, Function2<X,? super T2,? super 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,? super A,? super B> outer, Function2<A,? super T1,? super T2> left, Function2<B,? super T2,? super T3> right)
outer - the last applied functioninner - the first applied functionCopyright © 2015. All Rights Reserved.