Class IntegerLruCache<T>

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

    public final class IntegerLruCache<T>
    extends DynamicLruCache<T,​java.lang.Integer>
    A DynamicLruCache for the Integer.
    • Constructor Summary

      Constructors 
      Constructor Description
      IntegerLruCache()
      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, java.lang.Integer 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

      • IntegerLruCache

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

      • sizeOf

        protected int sizeOf​(@NonNull
                             T key,
                             @NonNull
                             java.lang.Integer value)
        Overrides:
        sizeOf in class androidx.collection.LruCache<T,​java.lang.Integer>