jp.go.aist.rtm.RTC.buffer
Enum ReturnCode
java.lang.Object
java.lang.Enum<ReturnCode>
jp.go.aist.rtm.RTC.buffer.ReturnCode
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ReturnCode>
public enum ReturnCode
- extends java.lang.Enum<ReturnCode>
iBufferStatus return codes
Common return codes for buffer classes.
- BUFFER_OK: Normal return
- BUFFER_ERROR: Buffer error
- BUFFER_FULL: Buffer full
- BUFFER_EMPTY: Buffer empty
- NOT_SUPPORTED: Not supported function
- TIMEOUT: Timeout
- PRECONDITION_NOT_MET: Precodition not met
Method Summary |
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. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
BUFFER_OK
public static final ReturnCode BUFFER_OK
BUFFER_ERROR
public static final ReturnCode BUFFER_ERROR
BUFFER_FULL
public static final ReturnCode BUFFER_FULL
BUFFER_EMPTY
public static final ReturnCode BUFFER_EMPTY
NOT_SUPPORTED
public static final ReturnCode NOT_SUPPORTED
TIMEOUT
public static final ReturnCode TIMEOUT
PRECONDITION_NOT_MET
public static final ReturnCode PRECONDITION_NOT_MET
values
public static ReturnCode[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ReturnCode c : ReturnCode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ReturnCode valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null