Interface IResettableBuilder<T>

Type Parameters:
T - The type to be build
All Superinterfaces:
IBuilder<T>
All Known Implementing Classes:
BasicThreadFactory.Builder

public interface IResettableBuilder<T> extends IBuilder<T>
Marker interface for a resettable builder
Since:
10.0.0
Author:
Philip Helger
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    build(boolean bReset)
    Build the object
    void
    Reset the builder, so that a second object may be build with the same builder.

    Methods inherited from interface com.helger.commons.builder.IBuilder

    build
  • Method Details

    • reset

      void reset()
      Reset the builder, so that a second object may be build with the same builder.
    • build

      @Nonnull default T build(boolean bReset)
      Build the object
      Parameters:
      bReset - true if the builder should be reset after building, false if not.
      Returns:
      The built object. May not be null.