Class DrawableLruCache<T>

  • Type Parameters:
    T - The type of the key for this cache.

    public final class DrawableLruCache<T>
    extends DynamicLruCache<T,​android.graphics.drawable.Drawable>
    A DynamicLruCache for the Drawable.
    • Constructor Summary

      Constructors 
      Constructor Description
      DrawableLruCache()
      Constructor to initialize an object of this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int sizeOf​(T key, android.graphics.drawable.Drawable value)  
      • Methods inherited from class androidx.collection.LruCache

        create, createCount, entryRemoved, evictAll, evictionCount, get, hitCount, maxSize, missCount, put, putCount, remove, resize, size, snapshot, toString, trimToSize
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DrawableLruCache

        public DrawableLruCache()
        Constructor to initialize an object of this class.
    • Method Detail

      • sizeOf

        protected int sizeOf​(@NonNull
                             T key,
                             @NonNull
                             android.graphics.drawable.Drawable value)
        Overrides:
        sizeOf in class androidx.collection.LruCache<T,​android.graphics.drawable.Drawable>