nl.knowledgeplaza.util
Class SimpleLRUCache<K,V>
java.lang.Object
nl.knowledgeplaza.util.SimpleLRUCache<K,V>
public class SimpleLRUCache<K,V>
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CACHESIZE_PROPERTY_ID
public static final java.lang.String CACHESIZE_PROPERTY_ID
- See Also:
- Constant Field Values
SimpleLRUCache
public SimpleLRUCache(int size)
- Parameters:
size -
getCacheSize
public int getCacheSize()
- CacheSize:
setCacheSize
public void setCacheSize(int value)
withCacheSize
public SimpleLRUCache<K,V> withCacheSize(int value)
get
public V get(K key)
- Parameters:
key -
- Returns:
cache
public V cache(K key,
V value)
- Parameters:
value -
- Returns:
Copyright © 2010 KnowledgePlaza. All Rights Reserved.