public static enum Network.State extends java.lang.Enum<Network.State>
| Enum Constant and Description |
|---|
BLOCKED |
CONNECTED |
CONNECTING |
CONNECTION_ERROR |
DISCONNECTED |
NETWORK_RESET |
NOT_PERMITTED |
| Modifier and Type | Method and Description |
|---|---|
boolean |
connectionNotPermitted() |
boolean |
isBlocked() |
boolean |
isConnected() |
boolean |
isConnectedOrConnecting() |
boolean |
isConnecting() |
boolean |
isEquivalentToDisconnected() |
boolean |
isLeftOrDeleted() |
boolean |
isLeftOrDeletedOrBlocked() |
static Network.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Network.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Network.State CONNECTED
public static final Network.State CONNECTING
public static final Network.State CONNECTION_ERROR
public static final Network.State NETWORK_RESET
public static final Network.State DISCONNECTED
public static final Network.State BLOCKED
public static final Network.State NOT_PERMITTED
public static Network.State[] values()
for (Network.State c : Network.State.values()) System.out.println(c);
public static Network.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 boolean isConnected()
public boolean isConnecting()
public boolean isConnectedOrConnecting()
public boolean isEquivalentToDisconnected()
public boolean isLeftOrDeletedOrBlocked()
public boolean isLeftOrDeleted()
public boolean isBlocked()
public boolean connectionNotPermitted()