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