public static enum Tunnel.State extends java.lang.Enum<Tunnel.State>
Tunnel
.Modifier and Type | Method and Description |
---|---|
static Tunnel.State |
of(boolean running)
Get the state of a
Tunnel |
static Tunnel.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Tunnel.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Tunnel.State DOWN
public static final Tunnel.State TOGGLE
public static final Tunnel.State UP
public static Tunnel.State[] values()
for (Tunnel.State c : Tunnel.State.values()) System.out.println(c);
public static Tunnel.State 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.State of(boolean running)
Tunnel
running
- boolean indicating if the tunnel is running.