Interface MedicationImageProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A provider of images for medications.
- Author:
- Quentin Ligier
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@Nullable String
provide
(ChEmedEprMedication medication) Provides an image for the given medication, encoded in a data URL with an 'image' MIME type.
-
Field Details
-
NO_OP_INSTANCE
A no-operation instance.
-
-
Method Details
-
provide
Provides an image for the given medication, encoded in a data URL with an 'image' MIME type. If no image can be provided for the medication,null
is returned.- Parameters:
medication
- The medication for which to provide an image.- Returns:
- the data URL containing the medication image or
null
. - See Also:
-