Interface AbstractBuilder<R>

    • Method Detail

      • configureAndBuild

        @Contract(mutates="param1")
        @NotNull
        static <R,​B extends AbstractBuilder<R>> R configureAndBuild​(@NotNull
                                                                          B builder,
                                                                          @Nullable
                                                                          @Nullable java.util.function.Consumer<? super B> consumer)
        Configures builder using consumer and then builds.
        Type Parameters:
        R - the type to be built
        B - the builder type
        Parameters:
        builder - the builder
        consumer - the builder consume
        Returns:
        the built thing
        Since:
        4.10.0
      • build

        @Contract(value="-> new",
                  pure=true)
        @NotNull
        R build()
        Builds.
        Returns:
        the built thing
        Since:
        4.10.0