Located in compilation unit of sun.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(Cache.
Implements abstract sun. accept a visitor |
| public void | |
| public V | |
| public V | |
| public void | |
| public void | remove(Object key)
Implements abstract sun. Remove an entry from the cache. |
| public void | |
| public void | setTimeout(int timeout)
Implements abstract sun. Set the timeout(in seconds). |
| public int | size()
Implements abstract sun. Return the number of currently valid entries in the cache. |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final Cache<Object, Object> INSTANCE | |
| NullCache | back to summary |
|---|---|
| private NullCache() | |
| accept | back to summary |
|---|---|
| public void accept(Cache. Implements abstract sun. Doc from sun. accept a visitor | |
| clear | back to summary |
|---|---|
| public void clear() Implements abstract sun. Doc from sun. Remove all entries from the cache. | |
| get | back to summary |
|---|---|
| public V get(Object key) Implements abstract sun. Doc from sun. Get a value from the cache. | |
| pull | back to summary |
|---|---|
| public V pull(Object key) Implements abstract sun. Doc from sun. Pull an entry from the cache. | |
| put | back to summary |
|---|---|
| public void put(K key, V value) Implements abstract sun. Doc from sun. Add an entry to the cache. | |
| remove | back to summary |
|---|---|
| public void remove(Object key) Implements abstract sun. Doc from sun. Remove an entry from the cache. | |
| setCapacity | back to summary |
|---|---|
| public void setCapacity(int size) Implements abstract sun. Doc from sun. Set the maximum size. | |
| setTimeout | back to summary |
|---|---|
| public void setTimeout(int timeout) Implements abstract sun. Doc from sun. Set the timeout(in seconds). | |
| size | back to summary |
|---|---|
| public int size() Implements abstract sun. Doc from sun. Return the number of currently valid entries in the cache. | |