public enum IpProtocol extends Enum<IpProtocol>
| Enum Constant and Description | 
|---|
ICMP
ICMP. 
 | 
ICMP6
ICMP6. 
 | 
TCP
TCP. 
 | 
UDP
UDP. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static short | 
parseFromString(String input)
Parse a string input that could contain an IpProtocol value. 
 | 
short | 
value()
Gets the value to use for this IpProtocol. 
 | 
static IpProtocol | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static IpProtocol[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final IpProtocol ICMP
public static final IpProtocol TCP
public static final IpProtocol UDP
public static final IpProtocol ICMP6
public static IpProtocol[] values()
for (IpProtocol c : IpProtocol.values()) System.out.println(c);
public static IpProtocol 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 short value()
public static short parseFromString(String input)
input - the input string to parseIllegalArgumentException - if the input string does not contain a
 value that can be parsed into an IP protocol