com.esotericsoftware.kryo.serialize
Class CompatibleFieldSerializer.CachedField
java.lang.Object
com.esotericsoftware.kryo.serialize.CompatibleFieldSerializer.CachedField
- Enclosing class:
- CompatibleFieldSerializer
public class CompatibleFieldSerializer.CachedField
- extends java.lang.Object
Controls how a field will be serialized.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CompatibleFieldSerializer.CachedField
public CompatibleFieldSerializer.CachedField()
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.