Enum L2TunnelHandler.Direction
- java.lang.Object
-
- java.lang.Enum<L2TunnelHandler.Direction>
-
- org.onosproject.segmentrouting.pwaas.L2TunnelHandler.Direction
-
- All Implemented Interfaces:
Serializable,Comparable<L2TunnelHandler.Direction>
- Enclosing interface:
- L2TunnelHandler
public static enum L2TunnelHandler.Direction extends Enum<L2TunnelHandler.Direction>
Enum helper for handling the direction of the pw.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static L2TunnelHandler.DirectionvalueOf(String name)Returns the enum constant of this type with the specified name.static L2TunnelHandler.Direction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FWD
public static final L2TunnelHandler.Direction FWD
The forward direction of the pseudo wire.
-
REV
public static final L2TunnelHandler.Direction REV
The reverse direction of the pseudo wire.
-
-
Method Detail
-
values
public static L2TunnelHandler.Direction[] 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 (L2TunnelHandler.Direction c : L2TunnelHandler.Direction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static L2TunnelHandler.Direction valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-