put method
void
put(
- K key,
- V value
Implementation
void put(K key, V value) {
if (_map.length == maxSize) {
_evictLRU();
}
_map[key] = value;
}
void put(K key, V value) {
if (_map.length == maxSize) {
_evictLRU();
}
_map[key] = value;
}