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

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract K build()
      Build the data.
      T withId​(@NotNull java.util.function.Supplier<java.lang.String> supplier)
      Set the supplier that supplies the component's ID.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • withId

        @NotNull
        public final T withId​(@NotNull
                              @NotNull java.util.function.Supplier<java.lang.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.