public enum EventType extends java.lang.Enum<EventType>
SerialPortEvent
Enum Constant | Description |
---|---|
BI |
Break interrupt event type.
|
CD |
Carrier Detect event type.
|
CTS |
CTS event type.
|
DATA_AVAILABLE |
Data available to be read event type.
|
DSR |
DSR event type.
|
FE |
Framing error event type.
|
OE |
Overrun error event type.
|
OUTPUT_BUFFER_EMPTY |
Output buffer empty event type.
|
PE |
Parity error event type.
|
RI |
Ring Indicator event type.
|
Modifier and Type | Method | Description |
---|---|---|
static EventType |
getById(int id) |
Returns the
EventType associated to the provided ID. |
int |
getId() |
Returns the event ID.
|
static EventType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static EventType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventType DATA_AVAILABLE
public static final EventType OUTPUT_BUFFER_EMPTY
public static final EventType CTS
public static final EventType DSR
public static final EventType RI
public static final EventType CD
public static final EventType OE
public static final EventType PE
public static final EventType FE
public static final EventType BI
public static EventType[] values()
for (EventType c : EventType.values()) System.out.println(c);
public static EventType 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 getId()
public static EventType getById(int id)
EventType
associated to the provided ID.id
- The ID of the EventType
to retrieve.EventType
associated to the provided ID.