public final class CacheLRU extends GenericCache
GenericCache,
序列化表格DEFAULT_CAPACITY| 构造器和说明 |
|---|
CacheLRU()
Same as:
CacheLRU(GenericCache.DEFAULT_CAPACITY);
|
CacheLRU(int capacity)
Creates a CacheLRU instance with a given cache capacity.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addElement(Object key,
Object value)
Adds a value to the cache.
|
Object |
getElement(Object key) |
capacity, isFull, keys, sizepublic CacheLRU(int capacity)
capacity - The capacity of the cache.public CacheLRU()
CacheLRU(GenericCache.DEFAULT_CAPACITY);
public Object getElement(Object key)
getElement 在接口中 CachegetElement 在类中 GenericCachepublic final void addElement(Object key, Object value)
addElement 在接口中 CacheaddElement 在类中 GenericCachekey - The key referencing the value added to the cache.value - The value to add to the cache.Copyright © 2022. All rights reserved.