hla.rti1516
Class OrderType

java.lang.Object
  extended by hla.rti1516.OrderType
All Implemented Interfaces:
Serializable

public final class OrderType
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static OrderType RECEIVE
           
static OrderType TIMESTAMP
           
 
Constructor Summary
OrderType(OrderType otherOrderTypeValue)
          This is the only public constructor.
 
Method Summary
static OrderType decode(byte[] buffer, int offset)
           
 void encode(byte[] buffer, int offset)
           
 int encodedLength()
           
 boolean equals(Object otherOrderTypeValue)
          Allows comparison with other instance of same type.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RECEIVE

public static final OrderType RECEIVE

TIMESTAMP

public static final OrderType TIMESTAMP
Constructor Detail

OrderType

public OrderType(OrderType otherOrderTypeValue)
This is the only public constructor. Each user-defined instance of a OrderType must be initialized with one of the defined static values.

Parameters:
otherOrderTypeValue - must be a defined static value or another instance.
Method Detail

toString

public String toString()
Overrides:
toString in class Object
Returns:
String with value "OrderType(n)" where n is value

equals

public boolean equals(Object otherOrderTypeValue)
Allows comparison with other instance of same type.

Overrides:
equals in class Object
Returns:
true if supplied object is of type OrderType and has same value; false otherwise

hashCode

public int hashCode()
Overrides:
hashCode in class Object

encodedLength

public int encodedLength()

encode

public void encode(byte[] buffer,
                   int offset)

decode

public static OrderType decode(byte[] buffer,
                               int offset)
                        throws CouldNotDecode
Throws:
CouldNotDecode