public enum HardwareType extends Enum<HardwareType> implements ProtocolEnum
Enum Constant and Description |
---|
ARCNET
ARCNeT.
|
ATM
ATM.
|
ATM2
ATM2
|
ETHERNET
Ethernet2.
|
FIBER_CHANNEL
Fiber Channel.
|
FRAME_RELAY
Frame Relay.
|
HDLC
HDLC.
|
HYPER_CHANNEL
Hyper Channel.
|
IEEE802
IEEE 802 Networks.
|
NONE
No hardware type.
|
SERIAL
Serial line.
|
TOKEN_RING
Token Ring.
|
Modifier and Type | Method and Description |
---|---|
int |
code()
Returns the code value for the enumeration constant.
|
static HardwareType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HardwareType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HardwareType NONE
public static final HardwareType ETHERNET
public static final HardwareType TOKEN_RING
public static final HardwareType IEEE802
public static final HardwareType ARCNET
public static final HardwareType HYPER_CHANNEL
public static final HardwareType FRAME_RELAY
public static final HardwareType ATM
public static final HardwareType HDLC
public static final HardwareType FIBER_CHANNEL
public static final HardwareType ATM2
public static final HardwareType SERIAL
public static HardwareType[] values()
for (HardwareType c : HardwareType.values()) System.out.println(c);
public static HardwareType 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 int code()
ProtocolEnum
code
in interface ProtocolEnum
Copyright © 2016. All Rights Reserved.