Class LRUCache

  • All Implemented Interfaces:

    
    public final class LRUCache
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class LRUCache.Node
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      LRUCache(Integer capacity)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer get(Integer key)
      final Unit put(Integer key, Integer value)
      final Unit add(LRUCache.Node node)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait