Interface Prototype.BuilderDecorator<T>

Type Parameters:
T - the type of the builder to decorate
Enclosing class:
Prototype
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 Prototype.BuilderDecorator<T>
Provides a contract by which the Prototype.Blueprint annotated type can be decorated.

The implementation class type must provide a no-arg accessible constructor available to the generated class

The builder provides accessors to all types, using Optional for any field that is optional, or any other field unless it has a default value. Primitive types are an exception (unless declared as required).

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decorate(T target)
    Provides the ability to decorate the target.
  • Method Details

    • decorate

      void decorate(T target)
      Provides the ability to decorate the target.
      Parameters:
      target - the target being decorated