public static enum FirewallRule.Protocol extends Enum<FirewallRule.Protocol>
Modifier and Type | Method and Description |
---|---|
static FirewallRule.Protocol |
fromValue(String value) |
String |
toString() |
static FirewallRule.Protocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FirewallRule.Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FirewallRule.Protocol TCP
public static final FirewallRule.Protocol UDP
public static final FirewallRule.Protocol ICMP
public static final FirewallRule.Protocol UNKNOWN
public static FirewallRule.Protocol[] values()
for (FirewallRule.Protocol c : FirewallRule.Protocol.values()) System.out.println(c);
public static FirewallRule.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 static FirewallRule.Protocol fromValue(String value)
public String toString()
toString
in class Enum<FirewallRule.Protocol>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.