public enum NATProtocol extends java.lang.Enum<NATProtocol>
Enum Constant and Description |
---|
TCP
Port-forwarding uses TCP protocol.
|
UDP
Port-forwarding uses UDP protocol.
|
Modifier and Type | Method and Description |
---|---|
static NATProtocol |
fromValue(long v) |
static NATProtocol |
fromValue(java.lang.String v) |
int |
value() |
static NATProtocol |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NATProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NATProtocol UDP
public static final NATProtocol TCP
public static NATProtocol[] values()
for (NATProtocol c : NATProtocol.values()) System.out.println(c);
public static NATProtocol valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int value()
public static NATProtocol fromValue(long v)
public static NATProtocol fromValue(java.lang.String v)