public enum ConnectionType extends java.lang.Enum<ConnectionType>
Enum Constant and Description |
---|
TYPE_2G |
TYPE_3G |
TYPE_4G |
TYPE_5G |
TYPE_BLUETOOTH |
TYPE_ETHERNET |
TYPE_NONE
No active connection, effectively offline.
|
TYPE_UNKNOWN
A connection exists, but its type is unknown.
|
TYPE_WIFI |
Modifier and Type | Method and Description |
---|---|
static ConnectionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionType TYPE_2G
public static final ConnectionType TYPE_3G
public static final ConnectionType TYPE_4G
public static final ConnectionType TYPE_5G
public static final ConnectionType TYPE_BLUETOOTH
public static final ConnectionType TYPE_ETHERNET
public static final ConnectionType TYPE_NONE
public static final ConnectionType TYPE_UNKNOWN
public static final ConnectionType TYPE_WIFI
public static ConnectionType[] values()
for (ConnectionType c : ConnectionType.values()) System.out.println(c);
public static ConnectionType 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