Class LRUCache


  • public class LRUCache
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  LRUCache.LRUNode
      Interface for nodes in the LRU cache, basicly nodes in a doubly linked list.
      static interface  LRUCache.LRUObj
      Interface for object participating in the LRU Cache.
    • Constructor Summary

      Constructors 
      Constructor Description
      LRUCache​(int size)  
    • Constructor Detail

      • LRUCache

        public LRUCache​(int size)
    • Method Detail

      • getUsed

        public int getUsed()
      • setSize

        public void setSize​(int newSz)
      • flush

        public void flush()
      • print

        protected void print()