| Modifier and Type | Method and Description |
|---|---|
static <R,T1,T2,T3> |
Dispatching.curry(TernaryDelegate<R,T1,T2,T3> delegate,
T1 first)
Partial application of the first parameter to a ternary delegate.
|
static <T1,T2> BinaryDelegate<Void,T1,T2> |
Dispatching.delegate(BinaryAction<T1,T2> adaptee)
Adapts a binary action to a binary delegate.
|
static <T1,T2> BinaryDelegate<Boolean,T1,T2> |
Dispatching.delegate(BinaryPredicate<T1,T2> adaptee)
Adapts a binary predicate to a binary delegate.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Dispatching.ignore1st(Delegate<R,T2> delegate,
Class<T1> ignored)
Adapts a delegate to a binary delegate by ignoring the first parameter.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Dispatching.ignore2nd(Delegate<R,T1> delegate,
Class<T2> ignored)
Adapts a delegate to a binary delegate by ignoring the second parameter.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Interceptors.intercept(BinaryDelegate<R,T1,T2> innermost,
BinaryInterceptor<T1,T2>... interceptors)
Creates a binary interceptor chain.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Interceptors.intercept(BinaryDelegate<R,T1,T2> innermost,
BinaryInterceptor<T1,T2> interceptor)
Creates a binary interceptor chain.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Interceptors.intercept(BinaryDelegate<R,T1,T2> innermost,
BinaryInterceptor<T1,T2> first,
BinaryInterceptor<T1,T2> second)
Creates a binary interceptor chain.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Interceptors.intercept(BinaryDelegate<R,T1,T2> innermost,
BinaryInterceptor<T1,T2> first,
BinaryInterceptor<T1,T2> second,
BinaryInterceptor<T1,T2> third)
Creates a binary interceptor chain.
|
static <R,T1,T2,I extends BinaryInterceptor<T1,T2>> |
Interceptors.intercept(BinaryDelegate<R,T1,T2> innermost,
Iterable<I> interceptors)
Creates a binary interceptor chain.
|
static <R,T1,T2,I extends BinaryInterceptor<T1,T2>> |
Interceptors.intercept(BinaryDelegate<R,T1,T2> innermost,
Iterator<I> interceptors)
Creates a binary interceptor chain.
|
static <R,T1,T2,T3> |
Dispatching.mcurry(TernaryDelegate<R,T1,T2,T3> delegate,
T2 second)
Partial application of the second (middle) parameter to a ternary
delegate.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Spies.monitor(BinaryDelegate<R,T1,T2> delegate,
AtomicLong calls)
Monitors calls to a binary delegate.
|
static <R,T1,T2,T3> |
Dispatching.rcurry(TernaryDelegate<R,T1,T2,T3> delegate,
T3 third)
Partial application of the last (rightmost) parameter to a ternary
delegate.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Spies.spy(BinaryDelegate<R,T1,T2> delegate,
Box<R> result,
Box<T1> param1,
Box<T2> param2)
Proxies a binary delegate spying for result and parameters.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Spies.spy1st(BinaryDelegate<R,T1,T2> delegate,
Box<T1> param1)
Proxies a binary delegate spying for first parameter.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Spies.spy2nd(BinaryDelegate<R,T1,T2> delegate,
Box<T2> param2)
Proxies a binary delegate spying for second parameter.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Spies.spyRes(BinaryDelegate<R,T1,T2> delegate,
Box<R> result)
Proxies a binary delegate spying for result.
|
static <R,T,U> BinaryDelegate<R,T,U> |
Tuples.Pairs.untupled(Delegate<R,Pair<T,U>> delegate)
Adapts a delegate accepting a pair to a binary delegate.
|
| Modifier and Type | Method and Description |
|---|---|
static <R,T1,T2> BinaryAction<T1,T2> |
Dispatching.action(BinaryDelegate<R,T1,T2> delegate)
Adapts a binary delegate to a binary action.
|
static <R,T1,T2> BinaryPredicate<T1,T2> |
Compositions.compose(Predicate<R> predicate,
BinaryDelegate<R,T1,T2> delegate)
Composes a predicate with a binary delegate (predicate ° delegate).
|
static <R,T1,T2> Delegate<R,T2> |
Dispatching.curry(BinaryDelegate<R,T1,T2> delegate,
T1 first)
Partial application of the first parameter to a binary delegate.
|
static <R,T1,T2,T3> |
Dispatching.ignore1st(BinaryDelegate<R,T2,T3> delegate,
Class<T1> ignored)
Adapts a binary delegate to a ternary delegate by ignoring the first
parameter.
|
static <R,T1,T2,T3> |
Dispatching.ignore2nd(BinaryDelegate<R,T1,T3> delegate,
Class<T2> ignored)
Adapts a binary delegate to a ternary delegate by ignoring the second
parameter.
|
static <R,T1,T2,T3> |
Dispatching.ignore3rd(BinaryDelegate<R,T1,T2> delegate,
Class<T3> ignored)
Adapts a binary delegate to a ternary delegate by ignoring the third
parameter.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Interceptors.intercept(BinaryDelegate<R,T1,T2> innermost,
BinaryInterceptor<T1,T2>... interceptors)
Creates a binary interceptor chain.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Interceptors.intercept(BinaryDelegate<R,T1,T2> innermost,
BinaryInterceptor<T1,T2> interceptor)
Creates a binary interceptor chain.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Interceptors.intercept(BinaryDelegate<R,T1,T2> innermost,
BinaryInterceptor<T1,T2> first,
BinaryInterceptor<T1,T2> second)
Creates a binary interceptor chain.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Interceptors.intercept(BinaryDelegate<R,T1,T2> innermost,
BinaryInterceptor<T1,T2> first,
BinaryInterceptor<T1,T2> second,
BinaryInterceptor<T1,T2> third)
Creates a binary interceptor chain.
|
static <R,T1,T2,I extends BinaryInterceptor<T1,T2>> |
Interceptors.intercept(BinaryDelegate<R,T1,T2> innermost,
Iterable<I> interceptors)
Creates a binary interceptor chain.
|
static <R,T1,T2,I extends BinaryInterceptor<T1,T2>> |
Interceptors.intercept(BinaryDelegate<R,T1,T2> innermost,
Iterator<I> interceptors)
Creates a binary interceptor chain.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Spies.monitor(BinaryDelegate<R,T1,T2> delegate,
AtomicLong calls)
Monitors calls to a binary delegate.
|
static <T1,T2> BinaryPredicate<T1,T2> |
Dispatching.predicate(BinaryDelegate<Boolean,T1,T2> delegate)
Adapts a binary delegate to a binary predicate
|
static <R,T1,T2> Delegate<R,T1> |
Dispatching.rcurry(BinaryDelegate<R,T1,T2> delegate,
T2 second)
Partial application of the last (rightmost) parameter to a binary
delegate.
|
static <R,E> R |
Reductions.reduce(E[] array,
BinaryDelegate<R,R,E> delegate,
R init)
Reduces an array of elements using the passed delegate.
|
static <R,E> R |
Reductions.reduce(Iterable<E> iterable,
BinaryDelegate<R,R,E> delegate,
R init)
Reduces an iterator of elements using the passed delegate.
|
static <R,E> R |
Reductions.reduce(Iterator<E> iterator,
BinaryDelegate<R,R,E> delegate,
R init)
Reduces an iterator of elements using the passed delegate.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Spies.spy(BinaryDelegate<R,T1,T2> delegate,
Box<R> result,
Box<T1> param1,
Box<T2> param2)
Proxies a binary delegate spying for result and parameters.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Spies.spy1st(BinaryDelegate<R,T1,T2> delegate,
Box<T1> param1)
Proxies a binary delegate spying for first parameter.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Spies.spy2nd(BinaryDelegate<R,T1,T2> delegate,
Box<T2> param2)
Proxies a binary delegate spying for second parameter.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
Spies.spyRes(BinaryDelegate<R,T1,T2> delegate,
Box<R> result)
Proxies a binary delegate spying for result.
|
static <R,T,U> Delegate<R,Pair<T,U>> |
Tuples.tupled(BinaryDelegate<R,T,U> delegate)
Adapts a binary delegate to a delegate accepting a pair.
|
| Constructor and Description |
|---|
TransformingBinaryPredicate(Predicate<R> predicate,
BinaryDelegate<R,T1,T2> delegate) |
| Modifier and Type | Class and Description |
|---|---|
class |
BinaryActionToBinaryDelegate<T1,T2>
Adapts a binary action to a binary delegate.
|
class |
BinaryPredicateToBinaryDelegate<T1,T2>
Adapts a binary predicate to a binary delegate with Boolean result type.
|
class |
BinderFirstOfThree<R,T1,T2,T3>
Ternary to binary delegate adapter.
|
class |
BinderSecondOfThree<R,T1,T2,T3>
Ternary to binary delegate adapter.
|
class |
BinderThird<R,T1,T2,T3>
Ternary to binary delegate adapter.
|
class |
IgnoreFirst<R,T1,T2>
Adapts a delegate to a binary delegate.
|
class |
IgnoreSecond<R,T1,T2>
Adapts a delegate to a binary delegate.
|
| Constructor and Description |
|---|
BinaryDelegateToBinaryAction(BinaryDelegate<R,T1,T2> adaptee) |
BinaryDelegateToBinaryPredicate(BinaryDelegate<Boolean,T1,T2> adaptee) |
BinderFirst(BinaryDelegate<R,T,U> adaptee,
T first) |
BinderSecond(BinaryDelegate<R,T,U> adaptee,
U second) |
IgnoreFirstOfThree(BinaryDelegate<R,T2,T3> adaptee) |
IgnoreSecondOfThree(BinaryDelegate<R,T1,T3> adaptee) |
IgnoreThird(BinaryDelegate<R,T1,T2> adaptee) |
| Modifier and Type | Class and Description |
|---|---|
class |
ConstantMapper<R,T>
Transforms a value using mapping contained in the passed map.
|
class |
FirstParam<T1,T2>
A binary delegate yielding the first passed parameter.
|
class |
Flipper<R,T,U>
Adapts a binary delegate to another binary delegate by swapping formal
parameters.
|
class |
JavaIntrospector
A binary delegate yielding PropertyDescriptors of a class.
|
class |
SecondParam<T1,T2>
A binary delegate yielding second passed parameter.
|
| Constructor and Description |
|---|
Flipper(BinaryDelegate<R,U,T> delegate) |
| Modifier and Type | Class and Description |
|---|---|
class |
BinaryCapturingDelegate<R,T1,T2>
Proxies a binary delegate capturing parameters and result.
|
class |
BinaryMonitoringDelegate<R,T1,T2>
Proxies a binary delegate monitoring its calls.
|
| Constructor and Description |
|---|
BinaryCapturingDelegate(BinaryDelegate<R,T1,T2> nested,
Box<R> result,
Box<T1> param1,
Box<T2> param2) |
BinaryMonitoringDelegate(BinaryDelegate<R,T1,T2> nested,
AtomicLong calls) |
| Modifier and Type | Class and Description |
|---|---|
class |
BinaryInterceptorAdapter<R,T1,T2>
Adapts a binary interceptor to binary delegate.
|
class |
BinaryInterceptorChain<R,T1,T2> |
| Constructor and Description |
|---|
BinaryInterceptorAdapter(BinaryInterceptor<T1,T2> interceptor,
BinaryDelegate<R,T1,T2> inner) |
BinaryInterceptorChain(BinaryDelegate<R,T1,T2> innermost,
Iterator<I> chain) |
| Modifier and Type | Class and Description |
|---|---|
class |
Average<T>
A binary delegate accumulating sum and count of passed values on a pair.
|
class |
Divide<R,T1,T2>
A binary delegate performing a division.
|
class |
Modulus<R,T1,T2>
A binary delegate evaluating modulus of a type.
|
class |
Multiply<R,T1,T2>
A binary delegate performing a multiplication.
|
class |
Subtract<R,T1,T2>
A binary delegate performing a subtraction
|
class |
Sum<R,T1,T2>
Sums two values.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MaybeOrElse<T> |
| Modifier and Type | Class and Description |
|---|---|
class |
MakeOrder<T> |
class |
Max<T> |
class |
Min<T> |
| Modifier and Type | Class and Description |
|---|---|
class |
Difference<T>
A \ B. |
class |
Intersection<T>
A ∩ B. |
class |
SymmetricDifference<T>
A ∆ B = (A\B) ∪ (B\A). |
class |
Union<T>
A ∪ B. |
| Modifier and Type | Class and Description |
|---|---|
class |
Count<E> |
| Constructor and Description |
|---|
Reductor(BinaryDelegate<R,R,E> delegate,
R init) |
| Modifier and Type | Class and Description |
|---|---|
class |
InterposeStrings<T,V> |
| Modifier and Type | Class and Description |
|---|---|
class |
BinaryIdentity<T1,T2>
Returns both formal parameters (in a pair) passed to the delegate.
|
class |
UnaryToBinaryDelegate<R,T1,T2>
Adapts a unary delegate handling pairs to a binary delegate.
|
| Constructor and Description |
|---|
BinaryToUnaryDelegate(BinaryDelegate<R,T1,T2> delegate) |
Copyright © 2013. All Rights Reserved.