net.sf.extjwnl.util.cache
Class LRUCacheSet<K,A,B>

java.lang.Object
  extended by net.sf.extjwnl.util.cache.CacheSet<K,A,B>
      extended by net.sf.extjwnl.util.cache.LRUCacheSet<K,A,B>

public class LRUCacheSet<K,A,B>
extends CacheSet<K,A,B>

LeastRecentlyUsed cache set.

Author:
John Didion ,

Field Summary
 
Fields inherited from class net.sf.extjwnl.util.cache.CacheSet
DEFAULT_CACHE_CAPACITY
 
Constructor Summary
LRUCacheSet(List<K> keys)
           
LRUCacheSet(List<K> keys, int size)
           
LRUCacheSet(List<K> keys, List<Integer> sizes)
           
 
Method Summary
protected  POSCache<A,B> createCache(int size)
           
 
Methods inherited from class net.sf.extjwnl.util.cache.CacheSet
addCache, addCache, cacheObject, clearCache, clearObject, getCache, getCacheCapacity, getCachedObject, getCacheSize, getSize, setCacheCapacity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LRUCacheSet

public LRUCacheSet(List<K> keys)

LRUCacheSet

public LRUCacheSet(List<K> keys,
                   int size)

LRUCacheSet

public LRUCacheSet(List<K> keys,
                   List<Integer> sizes)
Method Detail

createCache

protected POSCache<A,B> createCache(int size)
Specified by:
createCache in class CacheSet<K,A,B>


Copyright © 2013. All Rights Reserved.