public static enum NetworkUtils.NetworkType extends java.lang.Enum<NetworkUtils.NetworkType>
Enum Constant and Description |
---|
NETWORK_2G |
NETWORK_3G |
NETWORK_4G |
NETWORK_NO |
NETWORK_UNKNOWN |
NETWORK_WIFI |
Modifier and Type | Method and Description |
---|---|
static NetworkUtils.NetworkType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NetworkUtils.NetworkType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkUtils.NetworkType NETWORK_WIFI
public static final NetworkUtils.NetworkType NETWORK_4G
public static final NetworkUtils.NetworkType NETWORK_3G
public static final NetworkUtils.NetworkType NETWORK_2G
public static final NetworkUtils.NetworkType NETWORK_UNKNOWN
public static final NetworkUtils.NetworkType NETWORK_NO
public static NetworkUtils.NetworkType[] values()
for (NetworkUtils.NetworkType c : NetworkUtils.NetworkType.values()) System.out.println(c);
public static NetworkUtils.NetworkType 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 null