public enum PortStatus extends Enum<PortStatus>
Enum Constant and Description |
---|
BLOCKED
The port is blocked awaiting data or free space
|
EOD
The port has been closed; no more data can be received or sent
|
READY
The port is ready to be read or written.
|
Modifier and Type | Method and Description |
---|---|
static PortStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PortStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PortStatus READY
public static final PortStatus BLOCKED
public static final PortStatus EOD
public static PortStatus[] values()
for (PortStatus c : PortStatus.values()) System.out.println(c);
public static PortStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2024 Actian Corporation. All rights reserved.