public enum DuplexMode extends java.lang.Enum<DuplexMode>
Enum Constant and Description |
---|
LONG_EDGE |
SHORT_EDGE |
SIMPLEX |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static DuplexMode |
valueOf(int value) |
static DuplexMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
返回具有指定名称的此类型的枚举常量。 |
static DuplexMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
以声明顺序返回包含此枚举类型的常量的数组。 |
public static final DuplexMode UNKNOWN
public static final DuplexMode SIMPLEX
public static final DuplexMode LONG_EDGE
public static final DuplexMode SHORT_EDGE
public static DuplexMode[] values()
for (DuplexMode c : DuplexMode.values()) System.out.println(c);
public static DuplexMode 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 name
java.lang.NullPointerException
- if the argument is null
public static DuplexMode valueOf(int value)
public int getValue()