public static enum Policy.Network extends Enum<Policy.Network>
| Modifier and Type | Method and Description |
|---|---|
static Policy.Network |
fromKey(String key) |
String |
key() |
static Policy.Network |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Policy.Network[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Policy.Network WIFI
public static final Policy.Network THREE_G
public static Policy.Network[] values()
for (Policy.Network c : Policy.Network.values()) System.out.println(c);
public static Policy.Network 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 String key()
public static Policy.Network fromKey(String key)
Copyright © 2014. All rights reserved.