public final class CacheFIFO extends GenericCache
GenericCache,
序列化表格DEFAULT_CAPACITY| 构造器和说明 |
|---|
CacheFIFO()
Same as:
CacheFIFO(GenericCache.DEFAULT_CAPACITY);
|
CacheFIFO(int capacity)
Creates a CacheFIFO instance with a given cache capacity.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addElement(Object key,
Object value)
Adds a value to the cache.
|
capacity, getElement, isFull, keys, sizepublic CacheFIFO(int capacity)
capacity - The capacity of the cache.public CacheFIFO()
CacheFIFO(GenericCache.DEFAULT_CAPACITY);
public 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 © 2023. All rights reserved.