public static enum PosPrinterDev.PortType extends java.lang.Enum<PosPrinterDev.PortType>
限定符和類型 | 方法和說明 |
---|---|
static PosPrinterDev.PortType |
valueOf(java.lang.String name)
返回帶有指定名稱的該類型的枚舉常量。
|
static PosPrinterDev.PortType[] |
values()
按照聲明該枚舉類型的常量的順序, 返回
包含這些常量的數組。
|
public static final PosPrinterDev.PortType Unknown
public static final PosPrinterDev.PortType USB
public static final PosPrinterDev.PortType Bluetooth
public static final PosPrinterDev.PortType Ethernet
public static PosPrinterDev.PortType[] values()
for (PosPrinterDev.PortType c : PosPrinterDev.PortType.values()) System.out.println(c);
public static PosPrinterDev.PortType valueOf(java.lang.String name)
name
- 要返回的枚舉常量的名稱。java.lang.IllegalArgumentException
- 如果該枚舉類型沒有帶有指定名稱的常量java.lang.NullPointerException
- 如果參數為空值