@Beta public enum IpProtocol extends Enum<IpProtocol>
| Enum Constant and Description | 
|---|
ALL  | 
ICMP  | 
TCP  | 
UDP  | 
UNRECOGNIZED  | 
| Modifier and Type | Method and Description | 
|---|---|
static IpProtocol | 
fromValue(String protocol)  | 
String | 
toString()  | 
String | 
value()  | 
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 TCP
public static final IpProtocol UDP
public static final IpProtocol ICMP
public static final IpProtocol ALL
public static final IpProtocol UNRECOGNIZED
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 String value()
public String toString()
toString in class Enum<IpProtocol>public static IpProtocol fromValue(String protocol)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.