@ProtoTypeId(value=4000) public enum CounterState extends Enum<CounterState>
| Enum Constant and Description |
|---|
LOWER_BOUND_REACHED
The counter value has reached its min threshold, i.e.
|
UPPER_BOUND_REACHED
The counter value has reached its max threshold.
|
VALID
The counter value is valid.
|
| Modifier and Type | Method and Description |
|---|---|
static CounterState |
valueOf(int index) |
static CounterState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CounterState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@ProtoEnumValue(number=0) public static final CounterState VALID
@ProtoEnumValue(number=1) public static final CounterState LOWER_BOUND_REACHED
@ProtoEnumValue(number=2) public static final CounterState UPPER_BOUND_REACHED
public static CounterState[] values()
for (CounterState c : CounterState.values()) System.out.println(c);
public static CounterState 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 nullpublic static CounterState valueOf(int index)
Copyright © 2021 JBoss by Red Hat. All rights reserved.