public abstract class InvocationStrategy extends java.lang.Object implements Strategy, FunctionDecorator
Constructor and Description |
---|
InvocationStrategy() |
Modifier and Type | Method and Description |
---|---|
<R> Function0<R> |
apply(Function0<R> f) |
<T,R> Function1<T,R> |
apply(Function1<T,R> f) |
<T1,T2,R> Function2<T1,T2,R> |
apply(Function2<T1,T2,R> f) |
<T1,T2,T3,R> |
apply(Function3<T1,T2,T3,R> f) |
<T1,T2,T3,T4,R> |
apply(Function4<T1,T2,T3,T4,R> f) |
<T1,T2,T3,T4,T5,R> |
apply(Function5<T1,T2,T3,T4,T5,R> f) |
protected abstract <R> R |
wrap(Function<R> f,
java.util.List<java.lang.Object> args)
An operation wrapping origin function.
|
protected abstract <R> R wrap(Function<R> f, java.util.List<java.lang.Object> args)
R
- an invocation return typef
- an origin functionargs
- function argumentsDecoratorChainException
- on error in a chainpublic <R> Function0<R> apply(Function0<R> f)
apply
in interface FunctionDecorator
public <T,R> Function1<T,R> apply(Function1<T,R> f)
apply
in interface FunctionDecorator
public <T1,T2,R> Function2<T1,T2,R> apply(Function2<T1,T2,R> f)
apply
in interface FunctionDecorator
public <T1,T2,T3,R> Function3<T1,T2,T3,R> apply(Function3<T1,T2,T3,R> f)
apply
in interface FunctionDecorator
public <T1,T2,T3,T4,R> Function4<T1,T2,T3,T4,R> apply(Function4<T1,T2,T3,T4,R> f)
apply
in interface FunctionDecorator
public <T1,T2,T3,T4,T5,R> Function5<T1,T2,T3,T4,T5,R> apply(Function5<T1,T2,T3,T4,T5,R> f)
apply
in interface FunctionDecorator