public final class DoNothingRunnable
extends java.lang.Object
implements java.lang.Runnable
Runnable
implementation which does no action.Modifier and Type | Method and Description |
---|---|
static DoNothingRunnable |
instance()
Call to get a default instance of the
DoNothingRunnable . |
void |
run() |
public static DoNothingRunnable instance()
DoNothingRunnable
. Because there is no saved
or shared state, the same instance can be reused as much as desired.public final void run()
run
in interface java.lang.Runnable