com.threerings.presents.client
Class InvocationReceiver.Registration

java.lang.Object
  extended by com.threerings.presents.client.InvocationReceiver.Registration
All Implemented Interfaces:
Streamable, DSet.Entry
Enclosing interface:
InvocationReceiver

public static class InvocationReceiver.Registration
extends Object
implements DSet.Entry

Used to maintain a registry of invocation receivers that can be used to convert (large) hash codes into (small) registration numbers.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
 String receiverCode
          The unique hash code associated with this invocation receiver class.
 short receiverId
          The unique id assigned to this invocation receiver class at registration time.
 
Constructor Summary
InvocationReceiver.Registration()
          Creates a blank instance suitable for unserialization.
InvocationReceiver.Registration(String receiverCode, short receiverId)
          Creates and initializes a registration instance.
 
Method Summary
 Comparable<?> getKey()
          Each entry provide an associated key which is used to determine its uniqueness in the set.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

receiverCode

public String receiverCode
The unique hash code associated with this invocation receiver class.


receiverId

public short receiverId
The unique id assigned to this invocation receiver class at registration time.

Constructor Detail

InvocationReceiver.Registration

public InvocationReceiver.Registration(String receiverCode,
                                       short receiverId)
Creates and initializes a registration instance.


InvocationReceiver.Registration

public InvocationReceiver.Registration()
Creates a blank instance suitable for unserialization.

Method Detail

getKey

public Comparable<?> getKey()
Description copied from interface: DSet.Entry
Each entry provide an associated key which is used to determine its uniqueness in the set. See the DSet class documentation for further information.

Specified by:
getKey in interface DSet.Entry

toString

public String toString()
Overrides:
toString in class Object