Enum Constant Summary
Enum Constants
BLOCK: ignore any newly reported value and reply with an error
FIRST: ignore any newly reported value
LAST: override with the newly reported value
MAX: only override if the value is higher than the existing value
MIN: only override if the value is lower than the existing value
SUM: If a previous sample exists, add the new sample to it so that the updated value is equal
to (previous + new).
Method Summary
All Methods Static Methods Concrete Methods
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
BLOCK
BLOCK: ignore any newly reported value and reply with an error
FIRST
FIRST: ignore any newly reported value
LAST
LAST: override with the newly reported value
MIN
MIN: only override if the value is lower than the existing value
MAX
MAX: only override if the value is higher than the existing value
SUM
SUM: If a previous sample exists, add the new sample to it so that the updated value is equal
to (previous + new). If no previous sample exists, set the updated value equal to the new value.
Method Details
values
Returns an array containing the constants of this enum class, in
the order they are declared.
Returns:
an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (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 class has no constant with the specified name
NullPointerException
- if the argument is null