public static enum Constant.Box.CNDoor extends java.lang.Enum<Constant.Box.CNDoor>
枚举常量和说明 |
---|
CNABNORMAL_OPEN |
CNCLOSE |
CNCLOSE_TIMEOUT |
CNFINGERPRINT_FAILED |
CNLOCK_OPENED |
CNOPEN |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getName() |
java.lang.String |
getValue() |
void |
setName(java.lang.String name) |
void |
setValue(java.lang.String value) |
java.lang.String |
toString() |
static Constant.Box.CNDoor |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Constant.Box.CNDoor[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Constant.Box.CNDoor CNCLOSE
public static final Constant.Box.CNDoor CNOPEN
public static final Constant.Box.CNDoor CNABNORMAL_OPEN
public static final Constant.Box.CNDoor CNCLOSE_TIMEOUT
public static final Constant.Box.CNDoor CNLOCK_OPENED
public static final Constant.Box.CNDoor CNFINGERPRINT_FAILED
public static Constant.Box.CNDoor[] values()
for (Constant.Box.CNDoor c : Constant.Box.CNDoor.values()) System.out.println(c);
public static Constant.Box.CNDoor valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量,
则抛出 IllegalArgumentExceptionjava.lang.NullPointerException
- 如果参数为空值, 则抛出 NullPointerExceptionpublic java.lang.String toString()
toString
在类中 java.lang.Enum<Constant.Box.CNDoor>
public java.lang.String getValue()
public void setValue(java.lang.String value)
public java.lang.String getName()
public void setName(java.lang.String name)