hla.rti
Interface ObjectInstanceHandle

All Superinterfaces:
java.io.Serializable

public interface ObjectInstanceHandle
extends java.io.Serializable

Type-safe handle for an object instance. 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 instance handle, placing the result into the specified buffer.
 int encodedLength()
          Returns the encoded length of this object instance handle.
 boolean equals(java.lang.Object otherObjectInstanceHandle)
          Checks this object instance handle for equality with another.
 int hashCode()
          Computes and returns a hash code corresponding to this object instance handle.
 java.lang.String toString()
          Returns a string representation of this object instance handle.
 

Method Detail

equals

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

Parameters:
otherObjectInstanceHandle - the other object instance handle
Returns:
true if the two handles refer to the same object instance, false otherwise

hashCode

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

Returns:
a hash code corresponding to this object instance handle

encodedLength

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

Returns:
the encoded length of this object instance handle

encode

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

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

toString

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

Returns:
a string representaiton of this object instance handle