| Modifier and Type | Method and Description |
|---|---|
static <R,T> Action<T> |
Dispatching.action(Delegate<R,T> delegate)
Adapts a delegate to an action.
|
static <T1,T2> Action<T2> |
Dispatching.curry(BinaryAction<T1,T2> action,
T1 first)
Partial application of the first parameter to a binary action.
|
static <T> Action<T> |
Dispatching.ignore(Runnable runnable,
Class<T> ignored)
Adapts a runnable to an action by ignoring the parameter.
|
static <T> Action<T> |
Spies.monitor(Action<T> action,
AtomicLong calls)
Monitors calls to an action.
|
static <T> Action<T> |
Pipelines.pipeline(Action<T>... actions)
Creates a pipeline from an array of actions.
|
static <T> Action<T> |
Pipelines.pipeline(Action<T> action)
Creates a pipeline from an action.
|
static <T> Action<T> |
Pipelines.pipeline(Action<T> former,
Action<T> latter)
Creates a pipeline from two actions.
|
static <T> Action<T> |
Pipelines.pipeline(Action<T> first,
Action<T> second,
Action<T> third)
Creates a pipeline from three actions.
|
static <T> Action<T> |
Pipelines.Unary.pipeline(Iterable<Action<T>> actions)
Creates a pipeline from an iterable of actions.
|
static <T> Action<T> |
Pipelines.Unary.pipeline(Iterator<Action<T>> actions)
Creates a pipeline from an iterator of actions.
|
static <T1,T2> Action<T1> |
Dispatching.rcurry(BinaryAction<T1,T2> action,
T2 second)
Partial application of the last (rightmost) parameter to a binary action.
|
static <T> Action<T> |
Spies.spy(Action<T> action,
Box<T> param)
Proxies an action spying for parameter.
|
static <T> Action<T> |
Spies.spy1st(Action<T> action,
Box<T> param)
Proxies a binary action spying for first parameter.
|
static <T,U> Action<Pair<T,U>> |
Tuples.tupled(BinaryAction<T,U> action)
Adapts a binary action to an action accepting a pair.
|
static <T,U,V> Action<Triple<T,U,V>> |
Tuples.tupled(TernaryAction<T,U,V> action)
Adapts a ternary action to an action accepting a triple.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Runnable |
Dispatching.curry(Action<T> action,
T value)
Partial application of the first parameter to an action.
|
static <T> Delegate<Void,T> |
Dispatching.delegate(Action<T> adaptee)
Adapts an action to a delegate.
|
static <E> void |
Applications.each(E[] array,
Action<E> action)
Applies a side effect on each elements of the source array.
|
static <E> void |
Applications.each(Iterable<E> iterable,
Action<E> action)
Applies a side effect on each elements of the source iterable.
|
static <E> void |
Applications.each(Iterator<E> iterator,
Action<E> action)
Applies a side effect on each elements of the source iterator.
|
static <T1,T2> BinaryAction<T1,T2> |
Dispatching.ignore1st(Action<T2> action,
Class<T1> ignored)
Adapts an action to a binary action by ignoring the first parameter.
|
static <T1,T2> BinaryAction<T1,T2> |
Dispatching.ignore2nd(Action<T1> action,
Class<T2> ignored)
Adapts an action to a binary action by ignoring the second parameter.
|
static <T> Action<T> |
Spies.monitor(Action<T> action,
AtomicLong calls)
Monitors calls to an action.
|
static <T> Action<T> |
Pipelines.pipeline(Action<T>... actions)
Creates a pipeline from an array of actions.
|
static <T> Action<T> |
Pipelines.pipeline(Action<T> action)
Creates a pipeline from an action.
|
static <T> Action<T> |
Pipelines.pipeline(Action<T> former,
Action<T> latter)
Creates a pipeline from two actions.
|
static <T> Action<T> |
Pipelines.pipeline(Action<T> former,
Action<T> latter)
Creates a pipeline from two actions.
|
static <T> Action<T> |
Pipelines.pipeline(Action<T> first,
Action<T> second,
Action<T> third)
Creates a pipeline from three actions.
|
static <T> Action<T> |
Pipelines.pipeline(Action<T> first,
Action<T> second,
Action<T> third)
Creates a pipeline from three actions.
|
static <T> Action<T> |
Pipelines.pipeline(Action<T> first,
Action<T> second,
Action<T> third)
Creates a pipeline from three actions.
|
static <T> Action<T> |
Spies.spy(Action<T> action,
Box<T> param)
Proxies an action spying for parameter.
|
static <T> Action<T> |
Spies.spy1st(Action<T> action,
Box<T> param)
Proxies a binary action spying for first parameter.
|
static <E> Iterator<E> |
Applications.tap(E[] array,
Action<E> action)
Creates an iterator yielding each element of the source array after
applying the passed action.
|
static <E> Iterator<E> |
Applications.tap(Iterable<E> iterable,
Action<E> action)
Creates an iterator yielding each element of the source iterable after
applying the passed action.
|
static <E> Iterator<E> |
Applications.tap(Iterator<E> iterator,
Action<E> action)
Creates an iterator yielding each element of the source iterator after
applying the passed action.
|
static <T,U> BinaryAction<T,U> |
Tuples.Pairs.untupled(Action<Pair<T,U>> action)
Adapts an action accepting a pair to a binary action.
|
static <T,U,V> TernaryAction<T,U,V> |
Tuples.Triples.untupled(Action<Triple<T,U,V>> action)
Adapts an action accepting a triple to a ternary action.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Action<T> |
Pipelines.Unary.pipeline(Iterable<Action<T>> actions)
Creates a pipeline from an iterable of actions.
|
static <T> Action<T> |
Pipelines.Unary.pipeline(Iterator<Action<T>> actions)
Creates a pipeline from an iterator of actions.
|
| Constructor and Description |
|---|
Tapper(Action<T> action) |
| Modifier and Type | Class and Description |
|---|---|
class |
Noop<E>
A null unary functor with no return value effectively doing nothing.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ActionBinderFirst<T1,T2>
Binary to unary action adapter.
|
class |
ActionBinderSecond<T1,T2>
Binary to unary action adapter.
|
class |
DelegateToAction<R,T>
Adapts a delegate to an action.
|
class |
RunnableIgnoreParameter<T>
Adapts a runnable as an action.
|
| Constructor and Description |
|---|
ActionBinder(Action<T> adaptee,
T only) |
ActionIgnoreFirst(Action<T2> adaptee) |
ActionIgnoreSecond(Action<T1> adaptee) |
ActionToDelegate(Action<T> adaptee) |
| Modifier and Type | Class and Description |
|---|---|
class |
PipelinedAction<E>
A composite unary functor with no return value.
|
| Constructor and Description |
|---|
PipelinedAction(Iterable<Action<E>> actions) |
| Modifier and Type | Class and Description |
|---|---|
class |
CapturingAction<T>
Proxies an action capturing parameter.
|
class |
MonitoringAction<T>
Proxies an action monitoring its calls.
|
| Constructor and Description |
|---|
CapturingAction(Action<T> nested,
Box<T> param) |
MonitoringAction(Action<T> nested,
AtomicLong calls) |
| Modifier and Type | Class and Description |
|---|---|
class |
BinaryToUnaryAction<T1,T2>
Adapts a binary action to an action handling pairs.
|
class |
TernaryToUnaryAction<T1,T2,T3>
Adapts a ternary action handling triples to an action handling triples.
|
| Constructor and Description |
|---|
UnaryToBinaryAction(Action<Pair<T1,T2>> action) |
UnaryToTernaryAction(Action<Triple<T1,T2,T3>> action) |
Copyright © 2012. All Rights Reserved.