Class FieldSerializer.CachedField<X>

    • Constructor Detail

      • CachedField

        public CachedField()
    • Method Detail

      • setClass

        public void setClass​(Class valueClass)
        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

        public void setClass​(Class valueClass,
                             Serializer serializer)
        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

        public void setSerializer​(Serializer serializer)
      • getSerializer

        public Serializer getSerializer()
      • setCanBeNull

        public void setCanBeNull​(boolean canBeNull)
      • getField

        public Field getField()
      • write

        public abstract void write​(Output output,
                                   Object object)
      • read

        public abstract void read​(Input input,
                                  Object object)
      • copy

        public abstract void copy​(Object original,
                                  Object copy)