public abstract class SingleRun
extends java.lang.Object
singleRun() is called upon an instance. Typically it is used on a singleton to achieve once for
a class effect.| Constructor and Description |
|---|
SingleRun() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
run()
Takes the action that should run only once.
|
boolean |
singleRun()
Calls
run() if it is the first time this method is called upon this instance. |
public final boolean singleRun()
run() if it is the first time this method is called upon this instance.protected abstract void run()