@Beta public enum PiCounterType extends Enum<PiCounterType>
Enum Constant and Description |
---|
DIRECT
Identifies a counter associated to a match-action table, where cells are directly associated to table entries.
|
INDIRECT
Identifies a counter not associated with any other resource.
|
Modifier and Type | Method and Description |
---|---|
static PiCounterType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PiCounterType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PiCounterType DIRECT
public static final PiCounterType INDIRECT
public static PiCounterType[] values()
for (PiCounterType c : PiCounterType.values()) System.out.println(c);
public static PiCounterType 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 null