com.pax.dal.entity
Enum EWifiSleepPolicy
- java.lang.Object
-
- java.lang.Enum<EWifiSleepPolicy>
-
- com.pax.dal.entity.EWifiSleepPolicy
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<EWifiSleepPolicy>
public enum EWifiSleepPolicy extends java.lang.Enum<EWifiSleepPolicy>
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description KEEP_ON_ALWAYS一直保持Always keep onNEVER从不NeverONLY_PLUGGED_IN只当插电时保持Keep on only when plugged in
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetPolicy()static EWifiSleepPolicyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EWifiSleepPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KEEP_ON_ALWAYS
public static final EWifiSleepPolicy KEEP_ON_ALWAYS
一直保持Always keep on
-
ONLY_PLUGGED_IN
public static final EWifiSleepPolicy ONLY_PLUGGED_IN
只当插电时保持Keep on only when plugged in
-
NEVER
public static final EWifiSleepPolicy NEVER
从不Never
-
-
Method Detail
-
values
public static EWifiSleepPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EWifiSleepPolicy c : EWifiSleepPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EWifiSleepPolicy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getPolicy
public int getPolicy()
-
-