Interface DataClassInvokerGenerator.DataClassInformationWriter

Enclosing class:
DataClassInvokerGenerator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface DataClassInvokerGenerator.DataClassInformationWriter
Represents a writer for an instance of a data class generated by this generator.
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Writes all included field values from the given object instance into the provided data buffer using the given object mapper to write them.
  • Method Details

    • writeInformation

      void writeInformation(@NonNull DataBuf.Mutable target, @NonNull @NonNull Object obj, @NonNull @NonNull ObjectMapper context)
      Writes all included field values from the given object instance into the provided data buffer using the given object mapper to write them.
      Parameters:
      target - the buffer to write the field values to.
      obj - the object from which the field values should get written.
      context - the object mapper used to serialize the field values into the given buffer.
      Throws:
      NullPointerException - if either the given buffer, object or object mapper is null.