public abstract class Compositions extends Object
| Constructor and Description |
|---|
Compositions() |
| Modifier and Type | Method and Description |
|---|---|
static <R,T> Provider<R> |
compose(Delegate<R,T> f,
Provider<T> g)
Composes a delegate with a provider (delegate ° provider).
|
static <R,T2,T1> Delegate<R,T1> |
compose(Delegate<R,T2> f,
Delegate<T2,T1> g)
Composes a delegate with another delegate.
|
static <R,T3,T2,T1> |
compose(Delegate<R,T3> f,
Delegate<T3,T2> g,
Delegate<T2,T1> h)
Composes three delegates.
|
static <T> Delegate<T,T> |
compose(Iterator<Delegate<T,T>> endodelegates)
Composes an iterator of endodelegates.
|
static <R,T1,T2> BinaryPredicate<T1,T2> |
compose(Predicate<R> predicate,
BinaryDelegate<R,T1,T2> delegate)
Composes a predicate with a binary delegate (predicate ° delegate).
|
static <R,T> Predicate<T> |
compose(Predicate<R> predicate,
Delegate<R,T> delegate)
Composes a predicate with a delegate (predicate ° delegate).
|
static <R,T2,T1> Predicate<T1> |
compose(Predicate<R> p,
Delegate<R,T2> f,
Delegate<T2,T1> g)
Composes a predicate and two delegates, (predicate ° delegate1 °
delegate2).
|
static <R,T1,T2,T3> |
compose(Predicate<R> predicate,
TernaryDelegate<R,T1,T2,T3> delegate)
Composes a predicate with a ternary delegate (predicate ° delegate).
|
public static <R,T> Provider<R> compose(Delegate<R,T> f, Provider<T> g)
R - the delegate return typeT - the delegate and provider parameter typef - the delegate to be composedg - the provider to be composedpublic static <R,T2,T1> Delegate<R,T1> compose(Delegate<R,T2> f, Delegate<T2,T1> g)
R - f return typeT2 - f parameter type and g return typeT1 - g parameter typef - the first delegate to be composedg - the second delegate to be composedpublic static <R,T3,T2,T1> Delegate<R,T1> compose(Delegate<R,T3> f, Delegate<T3,T2> g, Delegate<T2,T1> h)
R - the first delegate result typeT3 - the first delegate parameter type, the second delegate result
typeT2 - the second delegate parameter type, the third delegate result
typeT1 - the third delegate parameter typef - the first delegate to be composedg - the second delegate to be composedh - the third delegate to be composedpublic static <R,T> Predicate<T> compose(Predicate<R> predicate, Delegate<R,T> delegate)
R - the predicate parameter type, the delegate result typeT - the delegate parameter typepredicate - the predicate to be composeddelegate - the delegate to be composedpublic static <R,T2,T1> Predicate<T1> compose(Predicate<R> p, Delegate<R,T2> f, Delegate<T2,T1> g)
R - the predicate parameter type, the first delegate result typeT2 - the first delegate parameter type, the second delegate result
typeT1 - the third delegate parameter typep - the predicate to be composedf - the first delegate to be composedg - the second delegate to be composedpublic static <R,T1,T2> BinaryPredicate<T1,T2> compose(Predicate<R> predicate, BinaryDelegate<R,T1,T2> delegate)
R - the predicate parameter typeT1 - the delegate first parameter typeT2 - the delegate second parameter typepredicate - the predicate to be composeddelegate - the delegate to be composedpublic static <R,T1,T2,T3> TernaryPredicate<T1,T2,T3> compose(Predicate<R> predicate, TernaryDelegate<R,T1,T2,T3> delegate)
R - the predicate parameter typeT1 - the delegate first parameter typeT2 - the delegate second parameter typeT3 - the delegate third parameter typepredicate - the predicate to be composeddelegate - the delegate to be composedCopyright © 2013. All rights reserved.