public static enum Counter.Mode extends Enum<Counter.Mode>
| Enum Constant and Description |
|---|
INCREMENT
Increase single value, report the real value
|
RATE
Rate with previous value when report
|
| Modifier and Type | Method and Description |
|---|---|
static Counter.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Counter.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Counter.Mode INCREMENT
public static final Counter.Mode RATE
public static Counter.Mode[] values()
for (Counter.Mode c : Counter.Mode.values()) System.out.println(c);
public static Counter.Mode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2020 The Apache Software Foundation. All rights reserved.