public enum NetworkState extends Enum<NetworkState>
Enum Constant and Description |
---|
ASLEEP
Networking is inactive and all devices are disabled.
|
CONNECTED_GLOBAL
A network device is connected, with global network connectivity.
|
CONNECTED_LOCAL
A network device is connected, but there is only link-local connectivity.
|
CONNECTED_SITE
A network device is connected, but there is only site-local connectivity.
|
CONNECTING
A network device is connecting to a network and there is no other available network connection.
|
DISCONNECTED
There is no active network connection.
|
DISCONNECTING
Network connections are being cleaned up.
|
UNKNOWN
Networking state is unknown.
|
Modifier and Type | Method and Description |
---|---|
static NetworkState |
parseCode(int code) |
static NetworkState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NetworkState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkState UNKNOWN
public static final NetworkState ASLEEP
public static final NetworkState DISCONNECTED
public static final NetworkState DISCONNECTING
public static final NetworkState CONNECTING
public static final NetworkState CONNECTED_LOCAL
public static final NetworkState CONNECTED_SITE
public static final NetworkState CONNECTED_GLOBAL
public static NetworkState[] values()
for (NetworkState c : NetworkState.values()) System.out.println(c);
public static NetworkState 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 NetworkState parseCode(int code)
Copyright © 2013. All Rights Reserved.