Package org.onosproject.net
Enum PortNumber.Logical
- java.lang.Object
-
- java.lang.Enum<PortNumber.Logical>
-
- org.onosproject.net.PortNumber.Logical
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PortNumber.Logical>
- Enclosing class:
- PortNumber
public static enum PortNumber.Logical extends java.lang.Enum<PortNumber.Logical>
Logical PortNumbers.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PortNumber
instance()
PortNumber instance for the logical port.long
number()
static PortNumber.Logical
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PortNumber.Logical[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IN_PORT
public static final PortNumber.Logical IN_PORT
-
TABLE
public static final PortNumber.Logical TABLE
-
NORMAL
public static final PortNumber.Logical NORMAL
-
FLOOD
public static final PortNumber.Logical FLOOD
-
ALL
public static final PortNumber.Logical ALL
-
LOCAL
public static final PortNumber.Logical LOCAL
-
CONTROLLER
public static final PortNumber.Logical CONTROLLER
-
ANY
public static final PortNumber.Logical ANY
-
-
Method Detail
-
values
public static PortNumber.Logical[] 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 (PortNumber.Logical c : PortNumber.Logical.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PortNumber.Logical 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 namejava.lang.NullPointerException
- if the argument is null
-
number
public long number()
-
instance
public PortNumber instance()
PortNumber instance for the logical port.- Returns:
PortNumber
-
-