public static enum Tunnel.Mode extends java.lang.Enum<Tunnel.Mode>
| Enum Constant | Description |
|---|---|
Auto |
The tunnel is enabled automatically if it is required.
|
Disable |
The tunnel is disabled.
|
Enable |
The tunnel is enabled.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
mValue |
| Modifier and Type | Method | Description |
|---|---|---|
static Tunnel.Mode |
fromInt(int value) |
|
int |
toInt() |
|
static Tunnel.Mode |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Tunnel.Mode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Tunnel.Mode Disable
public static final Tunnel.Mode Enable
public static final Tunnel.Mode Auto
public static Tunnel.Mode[] values()
for (Tunnel.Mode c : Tunnel.Mode.values()) System.out.println(c);
public static Tunnel.Mode 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 static Tunnel.Mode fromInt(int value) throws java.lang.RuntimeException
java.lang.RuntimeExceptionpublic int toInt()