com.esotericsoftware.kryo.serialize
Class CompatibleFieldSerializer.CachedField

java.lang.Object
  extended by com.esotericsoftware.kryo.serialize.CompatibleFieldSerializer.CachedField
Enclosing class:
CompatibleFieldSerializer

public class CompatibleFieldSerializer.CachedField
extends java.lang.Object

Controls how a field will be serialized.


Constructor Summary
CompatibleFieldSerializer.CachedField()
           
 
Method Summary
 void setCanBeNull(boolean canBeNull)
           
 void setClass(java.lang.Class fieldClass)
           
 void setClass(java.lang.Class fieldClass, Serializer serializer)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompatibleFieldSerializer.CachedField

public CompatibleFieldSerializer.CachedField()
Method Detail

setClass

public void setClass(java.lang.Class fieldClass)
Parameters:
fieldClass - The concrete class of the values for this field. This saves 1-2 bytes. The serializer registered for the specified class will be used. Only set to a non-null value if the field type in the class definition is final or the values for this field will not vary.

setClass

public void setClass(java.lang.Class fieldClass,
                     Serializer serializer)
Parameters:
fieldClass - The concrete class of the values for this field. This saves 1-2 bytes. Only set to a non-null value if the field type in the class definition is final or the values for this field will not vary.

setCanBeNull

public void setCanBeNull(boolean canBeNull)

toString

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


Copyright © 2011. All Rights Reserved.