Package com.hcl.labs.domi.metrics
Enum DOMIStatistics.StatisticAction
- java.lang.Object
-
- java.lang.Enum<DOMIStatistics.StatisticAction>
-
- com.hcl.labs.domi.metrics.DOMIStatistics.StatisticAction
-
- All Implemented Interfaces:
Serializable
,Comparable<DOMIStatistics.StatisticAction>
- Enclosing interface:
- DOMIStatistics
public static enum DOMIStatistics.StatisticAction extends Enum<DOMIStatistics.StatisticAction>
For statistic actions: add or remove to make it less confusing than a boolean
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DOMIStatistics.StatisticAction
valueOf(String name)
Returns the enum constant of this type with the specified name.static DOMIStatistics.StatisticAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INCREMENT
public static final DOMIStatistics.StatisticAction INCREMENT
Add one
-
DECREMENT
public static final DOMIStatistics.StatisticAction DECREMENT
Remove one
-
UNCHANGED
public static final DOMIStatistics.StatisticAction UNCHANGED
leave it
-
-
Method Detail
-
values
public static DOMIStatistics.StatisticAction[] 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 (DOMIStatistics.StatisticAction c : DOMIStatistics.StatisticAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DOMIStatistics.StatisticAction 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
-
-