com.pax.dal.entity
Enum OperatorInfo.State
- java.lang.Object
-
- java.lang.Enum<OperatorInfo.State>
-
- com.pax.dal.entity.OperatorInfo.State
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<OperatorInfo.State>
- Enclosing class:
- OperatorInfo
public static enum OperatorInfo.State extends java.lang.Enum<OperatorInfo.State>
网络状态。Network state.
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description AVAILABLE可用网络。Available network.CURRENT当前连接网络。Current connection network.FORBIDDEN禁用网络。Forbidden network.UNKNOWN未知。Unkown.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static OperatorInfo.StatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static OperatorInfo.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final OperatorInfo.State UNKNOWN
未知。Unkown.
-
AVAILABLE
public static final OperatorInfo.State AVAILABLE
可用网络。Available network.
-
CURRENT
public static final OperatorInfo.State CURRENT
当前连接网络。Current connection network.
-
FORBIDDEN
public static final OperatorInfo.State FORBIDDEN
禁用网络。Forbidden network.
-
-
Method Detail
-
values
public static OperatorInfo.State[] 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 (OperatorInfo.State c : OperatorInfo.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OperatorInfo.State 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
-
-