public final class CacheFIFO2 extends GenericCache
GenericCache,
序列化表格DEFAULT_CAPACITY| 构造器和说明 |
|---|
CacheFIFO2()
Same as:
CacheFIFO2(GenericCache.DEFAULT_CAPACITY);
|
CacheFIFO2(int capacity)
Creates a CacheFIFO2 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 CacheFIFO2(int capacity)
capacity - The capacity of the cache.public CacheFIFO2()
CacheFIFO2(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 © 2024. All rights reserved.