Class LruCache<K,​V>

  • All Implemented Interfaces:
    java.io.Serializable

    public class LruCache<K,​V>
    extends java.lang.Object
    implements java.io.Serializable
    Author:
    Loc Ha
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      LruCache​(int cacheSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(K k)  
      V get​(K k)  
      void put​(K k, V v)  
      V remove​(K k)  
      • Methods inherited from class java.lang.Object

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

      • LruCache

        public LruCache​(int cacheSize)
    • Method Detail

      • put

        public void put​(K k,
                        V v)
      • contains

        public boolean contains​(K k)
      • remove

        public V remove​(K k)
      • get

        public V get​(K k)