public final class CounterGlobal
extends java.lang.Object
isFinished()
returns true
otherwise false
. To increment the counter you
should call increment()
, which also returns when the counter exceeds
its limit.Constructor and Description |
---|
CounterGlobal() |
Modifier and Type | Method and Description |
---|---|
static boolean |
increment()
Increments the counter.
|
static boolean |
isCountable()
Delivers if this counter has any effects on the
increment() method
or not or, in other words: if this instance is a real counter or a dummy. |
static boolean |
isFinished()
Returns
true if the counter exceeds its limit otherwise
false . |
static void |
reset()
Resets the counter to 1 and the limit to 3.
|
public static final void reset()
#reset(int)
public static final boolean increment()
true
otherwise false
.public static final boolean isFinished()
true
if the counter exceeds its limit otherwise
false
. The counter is not manipulated by this method.public static final boolean isCountable()
increment()
method
or not or, in other words: if this instance is a real counter or a dummy.increment()
14-September-2016 18:23 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft