org.openflow.protocol
Enum OFTable.OFTableConfig
java.lang.Object
java.lang.Enum<OFTable.OFTableConfig>
org.openflow.protocol.OFTable.OFTableConfig
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<OFTable.OFTableConfig>
- Enclosing class:
- OFTable
public static enum OFTable.OFTableConfig
- extends java.lang.Enum<OFTable.OFTableConfig>
Field Summary |
protected int |
value
|
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
OFPTC_DEPRECATED_MASK
public static final OFTable.OFTableConfig OFPTC_DEPRECATED_MASK
value
protected int value
values
public static OFTable.OFTableConfig[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (OFTable.OFTableConfig c : OFTable.OFTableConfig.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static OFTable.OFTableConfig valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
valueOf
public static java.util.EnumSet<OFTable.OFTableConfig> valueOf(int i)
- Given a table config value, return the set of OFTableConfig enums
associated with it
- Parameters:
i
- table config bitmap
- Returns:
- EnumSet
toBitmap
public static int toBitmap(java.util.Set<OFTable.OFTableConfig> configs)
- Given a set of OFTableConfig enums, convert to bitmap value
- Parameters:
configs
- Set
- Returns:
- bitmap value
getValue
public int getValue()
- Returns:
- the value