hla.rti
Interface ObjectClassHandle

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
XRTIObjectClassHandle

public interface ObjectClassHandle
extends java.io.Serializable

Type-safe handle for an object class. Generally these are created by the run-time infrastructure and passed to the user.

Author:
DMSO

Method Summary
 void encode(byte[] buffer, int offset)
          Encodes this object handle, placing the result into the specified buffer.
 int encodedLength()
          Returns the encoded length of this object class handle.
 boolean equals(java.lang.Object otherObjectClassHandle)
          Checks this object class handle for equality with another.
 int hashCode()
          Computes and returns a hash code corresponding to this object class handle.
 java.lang.String toString()
          Returns a string representation of this object class handle.
 

Method Detail

equals

public boolean equals(java.lang.Object otherObjectClassHandle)
Checks this object class handle for equality with another.

Parameters:
otherObjectClassHandle - the other object class handle
Returns:
true if the object class handles refer to the same object class, false otherwise

hashCode

public int hashCode()
Computes and returns a hash code corresponding to this object class handle.

Returns:
a hash code corresponding to this object class handle

encodedLength

public int encodedLength()
Returns the encoded length of this object class handle.

Returns:
the encoded length of this object class handle (in bytes)

encode

public void encode(byte[] buffer,
                   int offset)
Encodes this object handle, placing the result into the specified buffer.

Parameters:
buffer - the buffer to contain the encoded value
offset - the offset within the buffer at which to store the encoded value

toString

public java.lang.String toString()
Returns a string representation of this object class handle.

Returns:
a string representation of this object class handle