public class CompatibleFieldSerializer.CachedField
extends java.lang.Object
Constructor and Description |
---|
CompatibleFieldSerializer.CachedField() |
Modifier and Type | Method and Description |
---|---|
void |
setCanBeNull(boolean canBeNull) |
void |
setClass(java.lang.Class fieldClass) |
void |
setClass(java.lang.Class fieldClass,
Serializer serializer) |
java.lang.String |
toString() |
public CompatibleFieldSerializer.CachedField()
public void setClass(java.lang.Class fieldClass)
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.public void setClass(java.lang.Class fieldClass, Serializer serializer)
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.public void setCanBeNull(boolean canBeNull)
public java.lang.String toString()
toString
in class java.lang.Object