Interface CheckedBuilder<P,​E extends Exception>

  • Type Parameters:
    P - Product of builder
    All Superinterfaces:
    Mutable, MutationBehaviour<Mutable>
    All Known Subinterfaces:
    Builder<P>

    @Deprecated(since="8.0.0",
                forRemoval=true)
    public interface CheckedBuilder<P,​E extends Exception>
    extends Mutable
    Deprecated, for removal: This API element is subject to removal in a future version.
    This is an over-arching concept whose build() method hides caller hierarchy. Users are advised to migrate away, either without a replacement interface, or with a proper domain-specific interface.
    Builder object which produces a product.
    • Method Detail

      • build

        @NonNull P build()
                  throws E extends Exception
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns instance of the product. Multiple calls to this method are not required to return same instance if the state of the builder has changed.
        Returns:
        A newly-built instance
        Throws:
        E - if the builder's state is not sufficiently initialized
        E extends Exception