public enum EncapsulationType extends Enum<EncapsulationType>
Enum Constant and Description |
---|
MPLS
Indicates an MPLS encapsulation.
|
NONE
Indicates no encapsulation.
|
VLAN
Indicates a VLAN encapsulation.
|
Modifier and Type | Method and Description |
---|---|
static EncapsulationType |
enumFromString(String encap)
Alternative method to valueOf.
|
static EncapsulationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EncapsulationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncapsulationType NONE
public static final EncapsulationType MPLS
public static final EncapsulationType VLAN
public static EncapsulationType[] values()
for (EncapsulationType c : EncapsulationType.values()) System.out.println(c);
public static EncapsulationType 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 static EncapsulationType enumFromString(String encap)
NONE
is returned.encap
- the string representing the encapsulation type