Class ObjectCacheTable<K,​T>


  • class ObjectCacheTable<K,​T>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<K,​T> m_hashTable  
      private int m_index  
      private java.lang.Object[] m_lru  
      private boolean[] m_places  
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectCacheTable​(int maxSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void add​(K key, T value)  
      (package private) boolean contains​(K key)  
      (package private) T get​(K key)  
      • Methods inherited from class java.lang.Object

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

      • m_hashTable

        private java.util.Map<K,​T> m_hashTable
      • m_lru

        private java.lang.Object[] m_lru
      • m_places

        private boolean[] m_places
      • m_index

        private int m_index
    • Constructor Detail

      • ObjectCacheTable

        public ObjectCacheTable​(int maxSize)
    • Method Detail

      • contains

        boolean contains​(K key)
      • get

        T get​(K key)
      • add

        void add​(K key,
                 T value)