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.

@FunctionalInterface public interface MedicationImageProvider
A provider of images for medications.
Author:
Quentin Ligier
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    A no-operation instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    Provides an image for the given medication, encoded in a data URL with an 'image' MIME type.
  • Field Details

  • Method Details

    • provide

      @Nullable String provide(ChEmedEprMedication medication)
      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: