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 , Aliaksandr Autayeu

Field Summary
 
Fields inherited from class net.sf.extjwnl.util.cache.CacheSet
DEFAULT_CACHE_CAPACITY
 
Constructor Summary
LRUCacheSet(K[] keys)
           
LRUCacheSet(K[] keys, int size)
           
LRUCacheSet(K[] keys, int[] sizes)
           
 
Method Summary
protected  Cache<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(K[] keys)

LRUCacheSet

public LRUCacheSet(K[] keys,
                   int size)

LRUCacheSet

public LRUCacheSet(K[] keys,
                   int[] sizes)
Method Detail

createCache

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


Copyright © 2011. All Rights Reserved.