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