public enum GroupModCommand extends Enum<GroupModCommand> implements OfpCodeBasedEnum
| Enum Constant and Description |
|---|
ADD
New group; Since 1.1.
|
DELETE
Delete all matching groups; Since 1.1.
|
MODIFY
Modify all matching groups; Since 1.1.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode(ProtocolVersion pv)
Returns the code for the constant, under the given protocol
version.
|
static GroupModCommand |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GroupModCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GroupModCommand ADD
public static final GroupModCommand MODIFY
public static final GroupModCommand DELETE
public static GroupModCommand[] values()
for (GroupModCommand c : GroupModCommand.values()) System.out.println(c);
public static GroupModCommand 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 int getCode(ProtocolVersion pv)
OfpCodeBasedEnumgetCode in interface OfpCodeBasedEnumpv - the protocol versionCopyright © 2014. All Rights Reserved.