Class FieldSerializer.CachedField<X>
java.lang.Object
com.esotericsoftware.kryo.serializers.FieldSerializer.CachedField<X>
- Enclosing class:
FieldSerializer<T,C extends FieldSerializerConfig>
Controls how a field will be serialized.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidgetField()abstract voidvoidsetCanBeNull(boolean canBeNull) voidvoidsetClass(Class valueClass, Serializer serializer) voidsetSerializer(Serializer serializer) toString()abstract void
-
Constructor Details
-
CachedField
public CachedField()
-
-
Method Details
-
setClass
- Parameters:
valueClass- 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
- Parameters:
valueClass- 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.
-
setSerializer
-
getSerializer
-
setCanBeNull
public void setCanBeNull(boolean canBeNull) -
getField
-
toString
-
write
-
read
-
copy
-