Package org.pepstock.charba.client.utils
Enum CTimer.Status
- java.lang.Object
-
- java.lang.Enum<CTimer.Status>
-
- org.pepstock.charba.client.utils.CTimer.Status
-
- All Implemented Interfaces:
Serializable
,Comparable<CTimer.Status>
- Enclosing class:
- CTimer
public static enum CTimer.Status extends Enum<CTimer.Status>
Enumerates the possible status of the timer.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INITIALIZED
Initial status, when the timer has been created.RUNNING
When the timer has been started.STOPPED
When the timer has been stopped.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CTimer.Status
valueOf(String name)
Returns the enum constant of this type with the specified name.static CTimer.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIALIZED
public static final CTimer.Status INITIALIZED
Initial status, when the timer has been created.
-
RUNNING
public static final CTimer.Status RUNNING
When the timer has been started.
-
STOPPED
public static final CTimer.Status STOPPED
When the timer has been stopped.
-
-
Method Detail
-
values
public static CTimer.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CTimer.Status c : CTimer.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CTimer.Status valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-