public interface Cache
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addElement(Object key,
Object value) |
int |
capacity()
Returns the maximum number of elements that can be cached at one time.
|
Object |
getElement(Object key) |
int |
size()
Returns the number of elements in the cache, not to be confused with
the
capacity() which returns the number
of elements that can be held in the cache at one time. |
int size()
capacity() which returns the number
of elements that can be held in the cache at one time.
int capacity()
Copyright © 2023. All rights reserved.