com.threerings.io
Enum Streamer.EnumStreamer.EnumReader

java.lang.Object
  extended by java.lang.Enum<Streamer.EnumStreamer.EnumReader>
      extended by com.threerings.io.Streamer.EnumStreamer.EnumReader
All Implemented Interfaces:
ByteEnum, Serializable, Comparable<Streamer.EnumStreamer.EnumReader>
Enclosing class:
Streamer.EnumStreamer

protected static enum Streamer.EnumStreamer.EnumReader
extends Enum<Streamer.EnumStreamer.EnumReader>
implements ByteEnum

Used to coerce the type system into quietude when reading enums from the wire.


Enum Constant Summary
NOT_USED
           
 
Method Summary
 byte toByte()
           
static Streamer.EnumStreamer.EnumReader valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Streamer.EnumStreamer.EnumReader[] 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

NOT_USED

public static final Streamer.EnumStreamer.EnumReader NOT_USED
Method Detail

values

public static Streamer.EnumStreamer.EnumReader[] 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 (Streamer.EnumStreamer.EnumReader c : Streamer.EnumStreamer.EnumReader.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Streamer.EnumStreamer.EnumReader valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toByte

public byte toByte()
Specified by:
toByte in interface ByteEnum