org.npsnet.xrti.proxies
Class HLAendianType

java.lang.Object
  extended byorg.npsnet.xrti.proxies.HLAendianType
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class HLAendianType
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Endian type to be used for describing basic representations.

Author:
org.npsnet.xrti.utilities.ProxyCompiler
See Also:
Serialized Form

Field Summary
static HLAendianType Big
          Enumerator #0.
static HLAendianType Little
          Enumerator #1.
 
Constructor Summary
HLAendianType()
          Default constructor (Big).
HLAendianType(HLAendianType other)
          Copy constructor.
 
Method Summary
static HLAendianType decode(HLAEncodingInputStream hlaeis)
          Reads and returns a HLAendianType from the specified stream.
 void encode(HLAEncodingOutputStream hlaeos)
          Writes this HLAendianType to the specified stream.
 boolean equals(java.lang.Object other)
          Compares this HLAendianType for equality with another.
 int hashCode()
          Computes and returns a hash code corresponding to this HLAendianType.
 java.lang.String toString()
          Returns a string representation of this HLAendianType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

Big

public static final HLAendianType Big
Enumerator #0.


Little

public static final HLAendianType Little
Enumerator #1.

Constructor Detail

HLAendianType

public HLAendianType()
Default constructor (Big).


HLAendianType

public HLAendianType(HLAendianType other)
Copy constructor.

Parameters:
other - the other HLAendianType to copy
Method Detail

decode

public static HLAendianType decode(HLAEncodingInputStream hlaeis)
                            throws java.io.IOException
Reads and returns a HLAendianType from the specified stream.

Parameters:
hlaeis - the input stream to read from
Returns:
the decoded value
Throws:
java.io.IOException - if an error occurs

equals

public boolean equals(java.lang.Object other)
Compares this HLAendianType for equality with another.

Parameters:
other - the other HLAendianType
Returns:
true if the two enumerated types are equal, false otherwise

hashCode

public int hashCode()
Computes and returns a hash code corresponding to this HLAendianType.

Returns:
a hash code corresponding to this HLAendianType

encode

public void encode(HLAEncodingOutputStream hlaeos)
            throws java.io.IOException
Writes this HLAendianType to the specified stream.

Parameters:
hlaeos - the stream to write to
Throws:
java.io.IOException - if an error occurs

toString

public java.lang.String toString()
Returns a string representation of this HLAendianType

Returns:
a string representation of this HLAendianType