Interface DataClassInvokerGenerator.DataClassInstanceCreator

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.DataClassInstanceCreator
Represents a creator for an instance of a data class generated by this generator.
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Provides a new instance of the data class reading the required arguments from the given buffer, deserializing them using the given object mapper.
  • Method Details

    • makeInstance

      Provides a new instance of the data class reading the required arguments from the given buffer, deserializing them using the given object mapper.
      Parameters:
      buf - the buffer to read the arguments from.
      context - the object mapper from which the call came, used read the serialized arguments.
      Returns:
      an instance of the underlying data class read from the given buffer.
      Throws:
      NullPointerException - if either the given buffer or object mapper is null.