Class AssetDataBuilder

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull AssetData build()
      Build the data.
      @NotNull AssetDataBuilder withFormat​(@NotNull java.util.function.Supplier<java.lang.String> supplier)
      Sets the supplier that supplies the Asset's format.
      @NotNull AssetDataBuilder withLastModifiedDate​(@NotNull java.util.function.Supplier<java.util.Date> supplier)
      Set the supplier that supplies the component's last modified date.
      @NotNull AssetDataBuilder withTags​(@NotNull java.util.function.Supplier<java.lang.String[]> supplier)
      Sets the supplier that supplies the Asset's tags.
      @NotNull AssetDataBuilder withUrl​(@NotNull java.util.function.Supplier<java.lang.String> supplier)
      Sets the supplier that supplies the URL.
      • Methods inherited from class java.lang.Object

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

      • withUrl

        @NotNull
        public @NotNull AssetDataBuilder withUrl​(@NotNull
                                                 @NotNull java.util.function.Supplier<java.lang.String> supplier)
        Sets the supplier that supplies the URL.
        Parameters:
        supplier - The URL value supplier.
        Returns:
        A new AssetDataBuilder.
        See Also:
        AssetData.getUrl()
      • withFormat

        @NotNull
        public @NotNull AssetDataBuilder withFormat​(@NotNull
                                                    @NotNull java.util.function.Supplier<java.lang.String> supplier)
        Sets the supplier that supplies the Asset's format.
        Parameters:
        supplier - The format value supplier.
        Returns:
        A new AssetDataBuilder.
        See Also:
        AssetData.getFormat()
      • withTags

        @NotNull
        public @NotNull AssetDataBuilder withTags​(@NotNull
                                                  @NotNull java.util.function.Supplier<java.lang.String[]> supplier)
        Sets the supplier that supplies the Asset's tags.
        Parameters:
        supplier - The tags value supplier.
        Returns:
        A new AssetDataBuilder.
        See Also:
        AssetData.getTags()
      • withLastModifiedDate

        @NotNull
        public @NotNull AssetDataBuilder withLastModifiedDate​(@NotNull
                                                              @NotNull java.util.function.Supplier<java.util.Date> supplier)
        Set the supplier that supplies the component's last modified date.
        Parameters:
        supplier - The last modified date value supplier.
        Returns:
        A new AssetDataBuilder.
        See Also:
        AssetData.getLastModifiedDate()