public enum EtherTypes extends Enum<EtherTypes>
| Enum Constant and Description |
|---|
ARP |
CDP |
CISCOQINQ |
IPv4 |
IPv6 |
LLDP |
MPLSMCAST |
MPLSUCAST |
OLDQINQ |
PVSTP |
QINQ |
RARP |
VLANTAGGED |
VTP |
| Modifier and Type | Method and 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.
|
public static final EtherTypes PVSTP
public static final EtherTypes CDP
public static final EtherTypes VTP
public static final EtherTypes IPv4
public static final EtherTypes ARP
public static final EtherTypes RARP
public static final EtherTypes VLANTAGGED
public static final EtherTypes IPv6
public static final EtherTypes MPLSUCAST
public static final EtherTypes MPLSMCAST
public static final EtherTypes QINQ
public static final EtherTypes LLDP
public static final EtherTypes OLDQINQ
public static final EtherTypes CISCOQINQ
public static EtherTypes[] values()
for (EtherTypes c : EtherTypes.values()) System.out.println(c);
public static EtherTypes 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 String toString()
toString in class Enum<EtherTypes>public int intValue()
public short shortValue()
public static String getEtherTypeName(int number)
public static String getEtherTypeName(short number)
public static String getEtherTypeName(byte number)
public static short getEtherTypeNumberShort(String name)
public static int getEtherTypeNumberInt(String name)
public static EtherTypes loadFromString(String string)
Copyright © 2015. All Rights Reserved.