Interface ParsableFactory<T extends Parsable>

Type Parameters:
T - The type of the parsable object.
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 interface ParsableFactory<T extends Parsable>
Defines the factory for creating parsable objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(ParseNode parseNode)
    Create a new parsable object from the given serialized data.
  • Method Details

    • create

      T create(@Nonnull ParseNode parseNode)
      Create a new parsable object from the given serialized data.
      Parameters:
      parseNode - The node to parse use to get the discriminator value from the payload.
      Returns:
      The parsable object.