Class GenericDataBuilder<T extends GenericDataBuilder<T,​K>,​K>

    • Method Detail

      • withId

        @NotNull
        public final T withId​(@NotNull
                              @NotNull Supplier<String> supplier)
        Set the supplier that supplies the component's ID.
        Parameters:
        supplier - The ID value supplier.
        Returns:
        A new builder.
      • build

        @NotNull
        public abstract K build()
        Build the data.
        Returns:
        The data object.