public static enum ICMPv6Packet.Type extends Enum<ICMPv6Packet.Type>
Enum Constant and Description |
---|
DestinationUnreachable |
EchoReply |
EchoRequest |
Other |
TimeExceeded |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
static ICMPv6Packet.Type |
toType(byte typeCode) |
static ICMPv6Packet.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ICMPv6Packet.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ICMPv6Packet.Type DestinationUnreachable
public static final ICMPv6Packet.Type TimeExceeded
public static final ICMPv6Packet.Type EchoRequest
public static final ICMPv6Packet.Type EchoReply
public static final ICMPv6Packet.Type Other
public static ICMPv6Packet.Type[] values()
for (ICMPv6Packet.Type c : ICMPv6Packet.Type.values()) System.out.println(c);
public static ICMPv6Packet.Type 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 getCode()
public static ICMPv6Packet.Type toType(byte typeCode)
Copyright © 2020. All rights reserved.