Enum Constant and Description |
---|
Disconnected
Virtual device is not attached to any real host device.
|
HostDevice
Virtual device is attached to a host device.
|
HostPipe
Virtual device is attached to a host pipe.
|
RawFile
Virtual device is attached to a raw file.
|
TCP
Virtual device is attached to a TCP socket.
|
Modifier and Type | Method and Description |
---|---|
static PortMode |
fromValue(long v) |
static PortMode |
fromValue(java.lang.String v) |
int |
value() |
static PortMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PortMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PortMode Disconnected
public static final PortMode HostPipe
public static final PortMode HostDevice
public static final PortMode RawFile
public static final PortMode TCP
public static PortMode[] values()
for (PortMode c : PortMode.values()) System.out.println(c);
public static PortMode 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 namejava.lang.NullPointerException
- if the argument is nullpublic int value()
public static PortMode fromValue(long v)
public static PortMode fromValue(java.lang.String v)