Class Image.Consumer<O>

java.lang.Object
de.espirit.firstspirit.agency.Image.Consumer<O>
Enclosing interface:
Image<S>

public abstract static class Image.Consumer<O> extends Object
An abstract consumer type providing an "extensible interface" to consume available sources of images.
Since:
5.2.416
  • Constructor Details

    • Consumer

      public Consumer()
  • Method Details

    • consume

      @Nullable public O consume(@NotNull @NotNull Icon icon)
      Consume an icon.
      Parameters:
      icon - The source icon.
      Returns:
      Output of the consuming process.
      Since:
      5.2.416
    • consume

      @Nullable public O consume(@NotNull @NotNull Media media)
      Consume a medium.
      Parameters:
      media - The source medium.
      Returns:
      Output of the consuming process.
      Since:
      5.2.416
    • consume

      @Nullable public O consume(@NotNull @NotNull String url)
      Consume a URL.
      Parameters:
      url - The source URL.
      Returns:
      Output of the consuming process.
      Since:
      5.2.416