public static enum OFPortStatus.OFPortReason extends Enum<OFPortStatus.OFPortReason>
Enum Constant and Description |
---|
OFPPR_ADD |
OFPPR_DELETE |
OFPPR_MODIFY |
Modifier and Type | Method and Description |
---|---|
static OFPortStatus.OFPortReason |
fromReasonCode(byte reason) |
byte |
getReasonCode() |
static OFPortStatus.OFPortReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OFPortStatus.OFPortReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OFPortStatus.OFPortReason OFPPR_ADD
public static final OFPortStatus.OFPortReason OFPPR_DELETE
public static final OFPortStatus.OFPortReason OFPPR_MODIFY
public static OFPortStatus.OFPortReason[] values()
for (OFPortStatus.OFPortReason c : OFPortStatus.OFPortReason.values()) System.out.println(c);
public static OFPortStatus.OFPortReason 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 byte getReasonCode()
public static OFPortStatus.OFPortReason fromReasonCode(byte reason)
Copyright © 2015. All rights reserved.