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