Interface ImageCache

All Known Implementing Classes:
FileCache

public interface ImageCache
Interface for ImageIcon caching classes.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable ImageIcon
    load(@NotNull Face face)
    Retrieves an image from the cache.
    void
    save(@NotNull Face face, @NotNull ImageIcon imageIcon)
    Stores an ImageIcon into the cache.
  • Method Details

    • load

      @Nullable @Nullable ImageIcon load(@NotNull @NotNull Face face)
      Retrieves an image from the cache.
      Parameters:
      face - the face to retrieve
      Returns:
      the image icon, or null if the cache does not contain the image
    • save

      void save(@NotNull @NotNull Face face, @NotNull @NotNull ImageIcon imageIcon)
      Stores an ImageIcon into the cache.
      Parameters:
      face - the face to save
      imageIcon - the image icon to store