jp.go.aist.rtm.RTC.buffer
Enum ReturnCode

java.lang.Object
  extended by java.lang.Enum<ReturnCode>
      extended by 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.


Enum Constant Summary
BUFFER_EMPTY
           
BUFFER_ERROR
           
BUFFER_FULL
           
BUFFER_OK
           
NOT_SUPPORTED
           
PRECONDITION_NOT_MET
           
TIMEOUT
           
 
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
 

Enum Constant Detail

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
Method Detail

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