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