com.jme3.network.serializing
Class SerializerRegistration

java.lang.Object
  extended by com.jme3.network.serializing.SerializerRegistration

public final class SerializerRegistration
extends java.lang.Object

A SerializerRegistration represents a connection between a class, and its serializer. It also includes the class ID, as a short.


Constructor Summary
SerializerRegistration(Serializer serializer, java.lang.Class cls, short id)
           
 
Method Summary
 short getId()
          Get the ID.
 Serializer getSerializer()
          Get the serializer.
 java.lang.Class getType()
          Get the class type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SerializerRegistration

public SerializerRegistration(Serializer serializer,
                              java.lang.Class cls,
                              short id)
Method Detail

getSerializer

public Serializer getSerializer()
Get the serializer.

Returns:
The serializer.

getId

public short getId()
Get the ID.

Returns:
The ID.

getType

public java.lang.Class getType()
Get the class type.

Returns:
The class type.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object