public static enum IPPacket.Protocol extends Enum<IPPacket.Protocol>
| Enum Constant and Description | 
|---|
ICMP  | 
TCP  | 
UDP  | 
V6_OVER_V4  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getCode()  | 
static IPPacket.Protocol | 
toProtocol(int code)  | 
static IPPacket.Protocol | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static IPPacket.Protocol[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final IPPacket.Protocol ICMP
public static final IPPacket.Protocol TCP
public static final IPPacket.Protocol UDP
public static final IPPacket.Protocol V6_OVER_V4
public static IPPacket.Protocol[] values()
for (IPPacket.Protocol c : IPPacket.Protocol.values()) System.out.println(c);
public static IPPacket.Protocol 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 IPPacket.Protocol toProtocol(int code)
Copyright © 2020. All rights reserved.