Enum EtherTypes
- java.lang.Object
-
- java.lang.Enum<EtherTypes>
-
- org.opendaylight.openflowplugin.libraries.liblldp.EtherTypes
-
- All Implemented Interfaces:
Serializable
,Comparable<EtherTypes>
public enum EtherTypes extends Enum<EtherTypes>
The enum contains the most common 802.3 ethernet types and 802.2 + SNAP protocol ids.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
getEtherTypeName(byte number)
static String
getEtherTypeName(int number)
static String
getEtherTypeName(short number)
static int
getEtherTypeNumberInt(String name)
static short
getEtherTypeNumberShort(String name)
static List<String>
getEtherTypesNameList()
int
intValue()
static EtherTypes
loadFromString(String string)
short
shortValue()
String
toString()
static EtherTypes
valueOf(String name)
Returns the enum constant of this type with the specified name.static EtherTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PVSTP
public static final EtherTypes PVSTP
-
CDP
public static final EtherTypes CDP
-
VTP
public static final EtherTypes VTP
-
IPv4
public static final EtherTypes IPv4
-
ARP
public static final EtherTypes ARP
-
RARP
public static final EtherTypes RARP
-
VLANTAGGED
public static final EtherTypes VLANTAGGED
-
IPv6
public static final EtherTypes IPv6
-
MPLSUCAST
public static final EtherTypes MPLSUCAST
-
MPLSMCAST
public static final EtherTypes MPLSMCAST
-
QINQ
public static final EtherTypes QINQ
-
LLDP
public static final EtherTypes LLDP
-
OLDQINQ
public static final EtherTypes OLDQINQ
-
CISCOQINQ
public static final EtherTypes CISCOQINQ
-
-
Method Detail
-
values
public static EtherTypes[] 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 (EtherTypes c : EtherTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EtherTypes 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<EtherTypes>
-
intValue
public int intValue()
-
shortValue
public short shortValue()
-
getEtherTypeName
public static String getEtherTypeName(int number)
-
getEtherTypeName
public static String getEtherTypeName(short number)
-
getEtherTypeName
public static String getEtherTypeName(byte number)
-
getEtherTypeNumberShort
public static short getEtherTypeNumberShort(String name)
-
getEtherTypeNumberInt
public static int getEtherTypeNumberInt(String name)
-
loadFromString
public static EtherTypes loadFromString(String string)
-
-