public static enum SerialComManager.SMODE extends Enum<SerialComManager.SMODE>
Pre-defined enum constants for defining behavior of byte stream.
| Enum Constant and Description |
|---|
BLOCKING
Read / Write operation will block till data is available.
|
NONBLOCKING
Read / Write operation will not block till data is available.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static SerialComManager.SMODE |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SerialComManager.SMODE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SerialComManager.SMODE BLOCKING
Read / Write operation will block till data is available.
public static final SerialComManager.SMODE NONBLOCKING
Read / Write operation will not block till data is available.
public static SerialComManager.SMODE[] values()
for (SerialComManager.SMODE c : SerialComManager.SMODE.values()) System.out.println(c);
public static SerialComManager.SMODE 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 nullpublic int getValue()
Copyright © 2017. All rights reserved.