Package de.espirit.firstspirit.agency
Interface Image<S>
@NonExtendable
public interface Image<S>
Interface for image containers.
- Since:
- 5.2.5
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
An abstract consumer type providing an "extensible interface" to consume available sources of images.static class
Exception wrapper to forward checked exceptions from within the consumption process. -
Method Summary
Modifier and TypeMethodDescriptionProvides the source this image is build upon.<O> O
supply
(@NotNull Image.Consumer<O> consumer) Supply the image to the given consumer.
-
Method Details
-
getSource
S getSource()Provides the source this image is build upon.- Returns:
- The image's source.
- Since:
- 5.2.5
-
supply
@Nullable <O> O supply(@NotNull @NotNull Image.Consumer<O> consumer) throws Image.ConsumptionException Supply the image to the given consumer.- Parameters:
consumer
- The consumer to be serviced.- Throws:
Image.ConsumptionException
- if used by the implemented consumer to wrap some exception.- Since:
- 5.2.416
-