public static enum Enum.ConnectionType extends java.lang.Enum<Enum.ConnectionType>
| Enum Constant and Description |
|---|
CELL
Cellular network.
|
CELL_2G
2G cellular network.
|
CELL_3G
3G cellular network.
|
CELL_4G
4G cellular network.
|
ETHERNET
Ethernet network.
|
UNKNOWN
Connection type is not defined.
|
| Modifier and Type | Method and Description |
|---|---|
static Enum.ConnectionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Enum.ConnectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Enum.ConnectionType UNKNOWN
public static final Enum.ConnectionType ETHERNET
public static final Enum.ConnectionType CELL
public static final Enum.ConnectionType CELL_2G
public static final Enum.ConnectionType CELL_3G
public static final Enum.ConnectionType CELL_4G
public static Enum.ConnectionType[] values()
for (Enum.ConnectionType c : Enum.ConnectionType.values()) System.out.println(c);
public static Enum.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