|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.lxtreme.ols.util.AccumulatingRunnable<T>
T
- the type this Runnable
accumulatespublic abstract class AccumulatingRunnable<T>
Shameless copy from sun.swing.AccumulatingRunnable.
Constructor Summary | |
---|---|
AccumulatingRunnable()
|
Method Summary | |
---|---|
void |
add(T... args)
appends arguments and sends this for the execution if needed. |
void |
run()
|
protected abstract void |
run(Deque<T> aArguments)
Equivalent to Runnable.run method with the accumulated arguments to
process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccumulatingRunnable()
Method Detail |
---|
public final void add(T... args)
This implementation uses submit()
to send this Runnable
for
execution.
args
- the arguments to accumulatepublic final void run()
This implementation calls run(List<T> args)
mehtod with the list of
accumulated arguments.
run
in interface Runnable
protected abstract void run(Deque<T> aArguments)
Runnable.run
method with the accumulated arguments to
process.
aArguments
- the accumulated arguments to process.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |