public enum EthType extends Enum<EthType>
| Enum Constant and Description |
|---|
ARP
ARP.
|
BSN
BSN.
|
IPV4
IPV4.
|
LLDP
LLDP.
|
RARP
RARP.
|
| Modifier and Type | Method and Description |
|---|---|
static short |
parseFromString(String input)
Parse a string input that could contain an EthType value.
|
short |
value()
Gets the value to use for this EthType.
|
static EthType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EthType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EthType ARP
public static final EthType RARP
public static final EthType IPV4
public static final EthType LLDP
public static final EthType BSN
public static EthType[] values()
for (EthType c : EthType.values()) System.out.println(c);
public static EthType 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 short value()
public static short parseFromString(String input)
input - the input string to parseIllegalArgumentException - if the input string does not contain a
value that can be parsed into an Ethernet typeCopyright © 2015. All rights reserved.