Interface ImageCache

  • All Known Implementing Classes:
    FileCache

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      @Nullable javax.swing.ImageIcon load​(@NotNull Face face)
      Retrieves an image from the cache.
      void save​(@NotNull Face face, @NotNull javax.swing.ImageIcon imageIcon)
      Stores an ImageIcon into the cache.
    • Method Detail

      • load

        @Nullable
        @Nullable javax.swing.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 javax.swing.ImageIcon imageIcon)
        Stores an ImageIcon into the cache.
        Parameters:
        face - the face to save
        imageIcon - the image icon to store