ConnectionState
instead@Deprecated public enum Connection extends java.lang.Enum<Connection>
Enum Constant and Description |
---|
AIRPLANE
Deprecated.
|
ALL
Deprecated.
|
DATA
Deprecated.
|
NONE
Deprecated.
|
WIFI
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
getBitMask()
Deprecated.
|
static Connection |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static Connection[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Connection NONE
public static final Connection AIRPLANE
public static final Connection WIFI
public static final Connection DATA
public static final Connection ALL
public static Connection[] values()
for (Connection c : Connection.values()) System.out.println(c);
public static Connection 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 int getBitMask()