Interface Setup<C,B>

Type Parameters:
C - The container type.
B - The builder type: the effective type of the derived builder implementation, at least this type itself.
All Known Implementing Classes:
Charger, DataBuilder, LateBuilder, ProtoBuilder
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 Setup<C,B>
Defines a generic interface for a uniform, basic implementation of a typical builder pattern. It assumes that the information to be gathered during the build process should be collected in a target instance attached to or created by the builder.
  • Method Summary

    Modifier and Type
    Method
    Description
    setup(Consumer<? super C> consumer)
    Accepts a Consumer as modifying operation to be performed on a target instance immediately or no later than the final build() operation and returns the builder instance itself.
  • Method Details

    • setup

      B setup(Consumer<? super C> consumer)
      Accepts a Consumer as modifying operation to be performed on a target instance immediately or no later than the final build() operation and returns the builder instance itself.