public interface

ImageCache

com.neomades.content.image.ImageCache
Known Indirect Subclasses

Class Overview

Simple cache adapter interface.

Implementation with an LruCache is recommended.

Summary

Public Methods
abstract void clear()
Clears all entries in the cache.
abstract Image getImage(String url)
Reads the Image from cache for the URL given in parameter.
abstract void putImage(String url, Image image)
Saves an image to the cache.

Public Methods

public abstract void clear ()

Clears all entries in the cache.

public abstract Image getImage (String url)

Reads the Image from cache for the URL given in parameter.

Returns
  • the image associated to the URL in the cache or null if not found

public abstract void putImage (String url, Image image)

Saves an image to the cache.