public abstract class Spies extends Object
| Constructor and Description |
|---|
Spies() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Action<T> |
monitor(Action<T> action,
AtomicLong calls)
Monitors calls to an action.
|
static <T1,T2> BinaryAction<T1,T2> |
monitor(BinaryAction<T1,T2> action,
AtomicLong calls)
Monitors calls to a binary action.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
monitor(BinaryDelegate<R,T1,T2> delegate,
AtomicLong calls)
Monitors calls to a binary delegate.
|
static <T1,T2> BinaryPredicate<T1,T2> |
monitor(BinaryPredicate<T1,T2> predicate,
AtomicLong calls)
Monitors calls to a binary predicate
|
static <R,T> Delegate<R,T> |
monitor(Delegate<R,T> delegate,
AtomicLong calls)
Monitors calls to a delegate.
|
static <T> Predicate<T> |
monitor(Predicate<T> predicate,
AtomicLong calls)
Monitors calls to a predicate.
|
static Proposition |
monitor(Proposition proposition,
AtomicLong calls)
Monitors calls to a proposition.
|
static <R> Provider<R> |
monitor(Provider<R> provider,
AtomicLong calls)
Monitors calls to a provider.
|
static Runnable |
monitor(Runnable runnable,
AtomicLong calls)
Monitors calls to a runnable.
|
static <T1,T2,T3> TernaryAction<T1,T2,T3> |
monitor(TernaryAction<T1,T2,T3> action,
AtomicLong calls)
Monitors calls to a ternary action.
|
static <R,T1,T2,T3> |
monitor(TernaryDelegate<R,T1,T2,T3> delegate,
AtomicLong calls)
Monitors calls to a ternary delegate.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
monitor(TernaryPredicate<T1,T2,T3> predicate,
AtomicLong calls)
Monitors calls to a ternary predicate.
|
static <T> Action<T> |
spy(Action<T> action,
Box<T> param)
Proxies an action spying for parameter.
|
static <T1,T2> BinaryAction<T1,T2> |
spy(BinaryAction<T1,T2> action,
Box<T1> param1,
Box<T2> param2)
Proxies a binary action spying for parameters.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
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 <T1,T2> BinaryPredicate<T1,T2> |
spy(BinaryPredicate<T1,T2> predicate,
Box<Boolean> result,
Box<T1> param1,
Box<T2> param2)
Proxies a binary predicate spying for result and parameters.
|
static <R,T> Delegate<R,T> |
spy(Delegate<R,T> delegate,
Box<R> result,
Box<T> param)
Proxies a delegate spying for result and parameter.
|
static <T> Predicate<T> |
spy(Predicate<T> predicate,
Box<Boolean> result,
Box<T> param)
Proxies a predicate spying for result and parameter.
|
static Proposition |
spy(Proposition proposition,
Box<Boolean> result)
Proxies a proposition, spying for result.
|
static <R> Provider<R> |
spy(Provider<R> provider,
Box<R> result)
Proxies a provider, spying for result.
|
static <T1,T2,T3> TernaryAction<T1,T2,T3> |
spy(TernaryAction<T1,T2,T3> action,
Box<T1> param1,
Box<T2> param2,
Box<T3> param3)
Proxies a ternary action spying for parameters.
|
static <R,T1,T2,T3> |
spy(TernaryDelegate<R,T1,T2,T3> delegate,
Box<R> result,
Box<T1> param1,
Box<T2> param2,
Box<T3> param3)
Proxies a ternary delegate spying for result and parameters.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
spy(TernaryPredicate<T1,T2,T3> predicate,
Box<Boolean> result,
Box<T1> param1,
Box<T2> param2,
Box<T3> param3)
Proxies a ternary predicate spying for result and parameters.
|
static <T> Action<T> |
spy1st(Action<T> action,
Box<T> param)
Proxies a binary action spying for first parameter.
|
static <T1,T2> BinaryAction<T1,T2> |
spy1st(BinaryAction<T1,T2> action,
Box<T1> param1)
Proxies a binary action spying for first parameter.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
spy1st(BinaryDelegate<R,T1,T2> delegate,
Box<T1> param1)
Proxies a binary delegate spying for first parameter.
|
static <T1,T2> BinaryPredicate<T1,T2> |
spy1st(BinaryPredicate<T1,T2> predicate,
Box<T1> param1)
Proxies a binary predicate spying for first parameter
|
static <R,T> Delegate<R,T> |
spy1st(Delegate<R,T> delegate,
Box<T> param)
Proxies a delegate spying for parameter.
|
static <T> Predicate<T> |
spy1st(Predicate<T> predicate,
Box<T> param)
Proxies a predicate spying for parameter.
|
static <T1,T2,T3> TernaryAction<T1,T2,T3> |
spy1st(TernaryAction<T1,T2,T3> action,
Box<T1> param1)
Proxies a ternary action spying for first parameter.
|
static <R,T1,T2,T3> |
spy1st(TernaryDelegate<R,T1,T2,T3> delegate,
Box<T1> param1)
Proxies a ternary delegate spying for first parameter.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
spy1st(TernaryPredicate<T1,T2,T3> predicate,
Box<T1> param1)
Proxies a ternary predicate spying for first parameter.
|
static <T1,T2> BinaryAction<T1,T2> |
spy2nd(BinaryAction<T1,T2> action,
Box<T2> param2)
Proxies a binary action spying for second parameter.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
spy2nd(BinaryDelegate<R,T1,T2> delegate,
Box<T2> param2)
Proxies a binary delegate spying for second parameter.
|
static <T1,T2> BinaryPredicate<T1,T2> |
spy2nd(BinaryPredicate<T1,T2> predicate,
Box<T2> param2)
Proxies a binary predicate spying for second parameter.
|
static <T1,T2,T3> TernaryAction<T1,T2,T3> |
spy2nd(TernaryAction<T1,T2,T3> action,
Box<T2> param2)
Proxies a ternary action spying for second parameter.
|
static <R,T1,T2,T3> |
spy2nd(TernaryDelegate<R,T1,T2,T3> delegate,
Box<T2> param2)
Proxies a ternary delegate spying for second parameter
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
spy2nd(TernaryPredicate<T1,T2,T3> predicate,
Box<T2> param2)
Proxies a ternary predicate spying for second parameter.
|
static <T1,T2,T3> TernaryAction<T1,T2,T3> |
spy3rd(TernaryAction<T1,T2,T3> action,
Box<T3> param3)
Proxies a ternary action spying for third parameter.
|
static <R,T1,T2,T3> |
spy3rd(TernaryDelegate<R,T1,T2,T3> delegate,
Box<T3> param3)
Proxies a ternary delegate spying for third parameter.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
spy3rd(TernaryPredicate<T1,T2,T3> predicate,
Box<T3> param3)
Proxies a ternary predicate spying for third parameter.
|
static <R,T1,T2> BinaryDelegate<R,T1,T2> |
spyRes(BinaryDelegate<R,T1,T2> delegate,
Box<R> result)
Proxies a binary delegate spying for result.
|
static <T1,T2> BinaryPredicate<T1,T2> |
spyRes(BinaryPredicate<T1,T2> predicate,
Box<Boolean> result)
Proxies a binary predicate spying for result.
|
static <R,T> Delegate<R,T> |
spyRes(Delegate<R,T> delegate,
Box<R> result)
Proxies a delegate spying for result.
|
static <T> Predicate<T> |
spyRes(Predicate<T> predicate,
Box<Boolean> result)
Proxies a predicate spying for result.
|
static <R,T1,T2,T3> |
spyRes(TernaryDelegate<R,T1,T2,T3> delegate,
Box<R> result)
Proxies a ternary delegate spying for result.
|
static <T1,T2,T3> TernaryPredicate<T1,T2,T3> |
spyRes(TernaryPredicate<T1,T2,T3> predicate,
Box<Boolean> result)
Proxies a ternary predicate spying for result.
|
public static Proposition spy(Proposition proposition, Box<Boolean> result)
proposition - the proposition to be spiedresult - a box that will be containing spied resultpublic static <R> Provider<R> spy(Provider<R> provider, Box<R> result)
R - the provider result typeprovider - the provider to be spiedresult - a box that will be containing spied resultpublic static <R,T> Delegate<R,T> spy(Delegate<R,T> delegate, Box<R> result, Box<T> param)
R - the delegate result typeT - the delegate parameter typedelegate - the delegate to be spiedresult - a box that will be containing spied resultparam - a box that will be containing spied parampublic static <R,T1,T2> BinaryDelegate<R,T1,T2> spy(BinaryDelegate<R,T1,T2> delegate, Box<R> result, Box<T1> param1, Box<T2> param2)
R - the delegate result typeT1 - the delegate first parameter typeT2 - the delegate second parameter typedelegate - the delegate to be spiedresult - a box that will be containing spied resultparam1 - a box that will be containing the first spied parameterparam2 - a box that will be containing the second spied parameterpublic static <R,T1,T2,T3> TernaryDelegate<R,T1,T2,T3> spy(TernaryDelegate<R,T1,T2,T3> delegate, Box<R> result, Box<T1> param1, Box<T2> param2, Box<T3> param3)
R - the delegate result typeT1 - the delegate first parameter typeT2 - the delegate second parameter typeT3 - the delegate third parameter typedelegate - the delegate to be spiedresult - a box that will be containing spied resultparam1 - a box that will be containing the first spied parameterparam2 - a box that will be containing the second spied parameterparam3 - a box that will be containing the third spied parameterpublic static <T> Predicate<T> spy(Predicate<T> predicate, Box<Boolean> result, Box<T> param)
T - the predicate parameter typepredicate - the predicateto be spiedresult - a box that will be containing spied resultparam - a box that will be containing the spied parameterpublic static <T1,T2> BinaryPredicate<T1,T2> spy(BinaryPredicate<T1,T2> predicate, Box<Boolean> result, Box<T1> param1, Box<T2> param2)
T1 - the predicate first parameter typeT2 - the predicate second parameter typepredicate - the predicate to be spiedresult - a box that will be containing spied resultparam1 - a box that will be containing the first spied parameterparam2 - a box that will be containing the second spied parameterpublic static <T1,T2,T3> TernaryPredicate<T1,T2,T3> spy(TernaryPredicate<T1,T2,T3> predicate, Box<Boolean> result, Box<T1> param1, Box<T2> param2, Box<T3> param3)
T1 - the predicate first parameter typeT2 - the predicate second parameter typeT3 - the predicate third parameter typepredicate - the predicate to be spiedresult - a box that will be containing spied resultparam1 - a box that will be containing the first spied parameterparam2 - a box that will be containing the second spied parameterparam3 - a box that will be containing the third spied parameterpublic static <T> Action<T> spy(Action<T> action, Box<T> param)
T - the action parameter typeaction - the action to be spiedparam - a box that will be containing the spied parameterpublic static <T1,T2> BinaryAction<T1,T2> spy(BinaryAction<T1,T2> action, Box<T1> param1, Box<T2> param2)
T1 - the action first parameter typeT2 - the action second parameter typeaction - the action that will be spiedparam1 - a box that will be containing the first spied parameterparam2 - a box that will be containing the second spied parameterpublic static <T1,T2,T3> TernaryAction<T1,T2,T3> spy(TernaryAction<T1,T2,T3> action, Box<T1> param1, Box<T2> param2, Box<T3> param3)
T1 - the action first parameter typeT2 - the action second parameter typeT3 - the action third parameter typeaction - the action that will be spiedparam1 - a box that will be containing the first spied parameterparam2 - a box that will be containing the second spied parameterparam3 - a box that will be containing the third spied parameterpublic static <R,T1,T2,T3> TernaryDelegate<R,T1,T2,T3> spyRes(TernaryDelegate<R,T1,T2,T3> delegate, Box<R> result)
R - the delegate result typeT1 - the delegate first parameter typeT2 - the delegate second parameter typeT3 - the delegate third parameter typedelegate - the delegate that will be spiedresult - a box that will be containing spied resultpublic static <R,T1,T2,T3> TernaryDelegate<R,T1,T2,T3> spy1st(TernaryDelegate<R,T1,T2,T3> delegate, Box<T1> param1)
R - the delegate result typeT1 - the delegate first parameter typeT2 - the delegate second parameter typeT3 - the delegate third parameter typedelegate - the delegate that will be spiedparam1 - a box that will be containing the first spied parameterpublic static <R,T1,T2,T3> TernaryDelegate<R,T1,T2,T3> spy2nd(TernaryDelegate<R,T1,T2,T3> delegate, Box<T2> param2)
R - the delegate result typeT1 - the delegate first parameter typeT2 - the delegate second parameter typeT3 - the delegate third parameter typedelegate - the delegate that will be spiedparam2 - a box that will be containing the second spied parameterpublic static <R,T1,T2,T3> TernaryDelegate<R,T1,T2,T3> spy3rd(TernaryDelegate<R,T1,T2,T3> delegate, Box<T3> param3)
R - the delegate result typeT1 - the delegate first parameter typeT2 - the delegate second parameter typeT3 - the delegate third parameter typedelegate - the delegate that will be spiedparam3 - a box that will be containing the third spied parameterpublic static <R,T1,T2> BinaryDelegate<R,T1,T2> spyRes(BinaryDelegate<R,T1,T2> delegate, Box<R> result)
R - the delegate result typeT1 - the delegate first parameter typeT2 - the delegate second parameter typedelegate - the delegate that will be spiedresult - a box that will be containing spied resultpublic static <R,T1,T2> BinaryDelegate<R,T1,T2> spy1st(BinaryDelegate<R,T1,T2> delegate, Box<T1> param1)
R - the delegate result typeT1 - the delegate first parameter typeT2 - the delegate second parameter typedelegate - the delegate that will be spiedparam1 - a box that will be containing the first spied parameterpublic static <R,T1,T2> BinaryDelegate<R,T1,T2> spy2nd(BinaryDelegate<R,T1,T2> delegate, Box<T2> param2)
R - the delegate result typeT1 - the delegate first parameter typeT2 - the delegate second parameter typedelegate - the delegate that will be spiedparam2 - a box that will be containing the second spied parameterpublic static <R,T> Delegate<R,T> spyRes(Delegate<R,T> delegate, Box<R> result)
R - the delegate result typeT - the delegate parameter typedelegate - the delegate that will be spiedresult - a box that will be containing spied resultpublic static <R,T> Delegate<R,T> spy1st(Delegate<R,T> delegate, Box<T> param)
R - the delegate result typeT - the delegate parameter typedelegate - the delegate that will be spiedparam - a box that will be containing spied parameterpublic static <T1,T2,T3> TernaryAction<T1,T2,T3> spy1st(TernaryAction<T1,T2,T3> action, Box<T1> param1)
T1 - the action first parameter typeT2 - the action second parameter typeT3 - the action third parameter typeaction - the action that will be spiedparam1 - a box that will be containing the first spied parameterpublic static <T1,T2,T3> TernaryAction<T1,T2,T3> spy2nd(TernaryAction<T1,T2,T3> action, Box<T2> param2)
T1 - the action first parameter typeT2 - the action second parameter typeT3 - the action third parameter typeaction - the action that will be spiedparam2 - a box that will be containing the second spied parameterpublic static <T1,T2,T3> TernaryAction<T1,T2,T3> spy3rd(TernaryAction<T1,T2,T3> action, Box<T3> param3)
T1 - the action first parameter typeT2 - the action second parameter typeT3 - the action third parameter typeaction - the action that will be spiedparam3 - a box that will be containing the third spied parameterpublic static <T1,T2> BinaryAction<T1,T2> spy1st(BinaryAction<T1,T2> action, Box<T1> param1)
T1 - the action first parameter typeT2 - the action second parameter typeaction - the action that will be spiedparam1 - a box that will be containing the first spied parameterpublic static <T1,T2> BinaryAction<T1,T2> spy2nd(BinaryAction<T1,T2> action, Box<T2> param2)
T1 - the action first parameter typeT2 - the action second parameter typeaction - the action that will be spiedparam2 - a box that will be containing the second spied parameterpublic static <T> Action<T> spy1st(Action<T> action, Box<T> param)
T - the action parameter typeaction - the action that will be spiedparam - a box that will be containing the spied parameterpublic static <T1,T2,T3> TernaryPredicate<T1,T2,T3> spyRes(TernaryPredicate<T1,T2,T3> predicate, Box<Boolean> result)
T1 - the predicate first parameter typeT2 - the predicate second parameter typeT3 - the predicate third parameter typepredicate - the predicate that will be spiedresult - a box that will be containing spied resultpublic static <T1,T2,T3> TernaryPredicate<T1,T2,T3> spy1st(TernaryPredicate<T1,T2,T3> predicate, Box<T1> param1)
T1 - the predicate first parameter typeT2 - the predicate second parameter typeT3 - the predicate third parameter typepredicate - the predicate that will be spiedparam1 - a box that will be containing the first spied parameterpublic static <T1,T2,T3> TernaryPredicate<T1,T2,T3> spy2nd(TernaryPredicate<T1,T2,T3> predicate, Box<T2> param2)
T1 - the predicate first parameter typeT2 - the predicate second parameter typeT3 - the predicate third parameter typepredicate - the predicate that will be spiedparam2 - a box that will be containing the second spied parameterpublic static <T1,T2,T3> TernaryPredicate<T1,T2,T3> spy3rd(TernaryPredicate<T1,T2,T3> predicate, Box<T3> param3)
T1 - the predicate first parameter typeT2 - the predicate second parameter typeT3 - the predicate third parameter typepredicate - the predicate that will be spiedparam3 - a box that will be containing the third spied parameterpublic static <T1,T2> BinaryPredicate<T1,T2> spyRes(BinaryPredicate<T1,T2> predicate, Box<Boolean> result)
T1 - the predicate first parameter typeT2 - the predicate second parameter typepredicate - the predicate that will be spiedresult - a box that will be containing spied resultpublic static <T1,T2> BinaryPredicate<T1,T2> spy1st(BinaryPredicate<T1,T2> predicate, Box<T1> param1)
T1 - the predicate first parameter typeT2 - the predicate second parameter typepredicate - the predicate that will be spiedparam1 - a box that will be containing the first spied parameterpublic static <T1,T2> BinaryPredicate<T1,T2> spy2nd(BinaryPredicate<T1,T2> predicate, Box<T2> param2)
T1 - the predicate first parameter typeT2 - the predicate second parameter typepredicate - the predicate that will be spiedparam2 - a box that will be containing the second spied parameterpublic static <T> Predicate<T> spyRes(Predicate<T> predicate, Box<Boolean> result)
T - the predicate parameter typepredicate - the predicate that will be spiedresult - a box that will be containing spied resultpublic static <T> Predicate<T> spy1st(Predicate<T> predicate, Box<T> param)
T - the predicate parameter typepredicate - the predicate that will be spiedparam - a box that will be containing spied parameterpublic static <T> Action<T> monitor(Action<T> action, AtomicLong calls)
T - the action parameter typeaction - the action that will be monitoredcalls - a value holder accumulating callspublic static <R,T> Delegate<R,T> monitor(Delegate<R,T> delegate, AtomicLong calls)
R - the delegate result typeT - the delegate parameter typedelegate - the delegate that will be monitoredcalls - a value holder accumulating callspublic static <T> Predicate<T> monitor(Predicate<T> predicate, AtomicLong calls)
T - the predicate parameter typepredicate - the predicate that will be monitoredcalls - a value holder accumulating callspublic static Proposition monitor(Proposition proposition, AtomicLong calls)
proposition - the proposition that will be monitoredcalls - a value holder accumulating callspublic static <R> Provider<R> monitor(Provider<R> provider, AtomicLong calls)
R - the provider result typeprovider - the provider that will be monitoredcalls - a value holder accumulating callspublic static Runnable monitor(Runnable runnable, AtomicLong calls)
runnable - the runnable that will be monitoredcalls - a value holder accumulating callspublic static <T1,T2> BinaryAction<T1,T2> monitor(BinaryAction<T1,T2> action, AtomicLong calls)
T1 - the action first parameter typeT2 - the action second parameter typeaction - the action that will be monitoredcalls - a value holder accumulating callspublic static <R,T1,T2> BinaryDelegate<R,T1,T2> monitor(BinaryDelegate<R,T1,T2> delegate, AtomicLong calls)
R - the delegate result typeT1 - the delegate first parameter typeT2 - the delegate second parameter typedelegate - the delegate that will be monitoredcalls - a value holder accumulating callspublic static <T1,T2> BinaryPredicate<T1,T2> monitor(BinaryPredicate<T1,T2> predicate, AtomicLong calls)
T1 - the predicate first parameter typeT2 - the predicate second parameter typepredicate - the predicate that will be monitoredcalls - a value holder accumulating callspublic static <T1,T2,T3> TernaryAction<T1,T2,T3> monitor(TernaryAction<T1,T2,T3> action, AtomicLong calls)
T1 - the action first parameter typeT2 - the action second parameter typeT3 - the action third parameter typeaction - the action that will be monitoredcalls - a value holder accumulating callspublic static <R,T1,T2,T3> TernaryDelegate<R,T1,T2,T3> monitor(TernaryDelegate<R,T1,T2,T3> delegate, AtomicLong calls)
R - the delegate result typeT1 - the delegate first parameter typeT2 - the delegate second parameter typeT3 - the delegate third parameter typedelegate - the delegate that will be monitoredcalls - a value holder accumulating callspublic static <T1,T2,T3> TernaryPredicate<T1,T2,T3> monitor(TernaryPredicate<T1,T2,T3> predicate, AtomicLong calls)
T1 - the predicate first parameter typeT2 - the predicate second parameter typeT3 - the predicate third parameter typepredicate - the predicate that will be monitoredcalls - a value holder accumulating callsCopyright © 2013. All Rights Reserved.