public enum NeighbourProtocol extends Enum<NeighbourProtocol>
Enum Constant and Description |
---|
ARP
Address Resolution Protocol (IPv4).
|
NDP
Neighbor Discovery Protocol (IPv6).
|
Modifier and Type | Method and Description |
---|---|
static NeighbourProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NeighbourProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NeighbourProtocol ARP
public static final NeighbourProtocol NDP
public static NeighbourProtocol[] values()
for (NeighbourProtocol c : NeighbourProtocol.values()) System.out.println(c);
public static NeighbourProtocol 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 null