public enum ReturnCode extends java.lang.Enum<ReturnCode>
Common return codes for buffer classes.
Enum Constant and Description |
---|
BUFFER_EMPTY |
BUFFER_ERROR |
BUFFER_FULL |
BUFFER_OK |
NOT_SUPPORTED |
PRECONDITION_NOT_MET |
TIMEOUT |
Modifier and Type | Method and Description |
---|---|
static ReturnCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReturnCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReturnCode BUFFER_OK
public static final ReturnCode BUFFER_ERROR
public static final ReturnCode BUFFER_FULL
public static final ReturnCode BUFFER_EMPTY
public static final ReturnCode NOT_SUPPORTED
public static final ReturnCode TIMEOUT
public static final ReturnCode PRECONDITION_NOT_MET
public static ReturnCode[] values()
for (ReturnCode c : ReturnCode.values()) System.out.println(c);
public static ReturnCode 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 null