K - The keyV - The valuepublic class SimpleCache<K,V> extends Object
| Constructor and Description |
|---|
SimpleCache(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
V |
get(K key) |
int |
getCapacity() |
void |
put(K key,
V value) |
void |
setCapacity(int capacity) |
Copyright © 2024. All rights reserved.