public final class LRUStorage<K,T> extends Object
| Constructor and Description |
|---|
LRUStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(K key) |
T |
first() |
T |
get(K streamId) |
boolean |
isEmpty() |
Set<K> |
keySet() |
T |
last() |
void |
put(K key,
T value) |
void |
putAll(Map<? extends K,? extends T> m) |
void |
remove(K key) |
void |
shrink(int maxSize)
Removes tired items to fit required size
|
int |
size() |
public void shrink(int maxSize)
maxSize - public int size()
public void remove(K key)
public T first()
public T last()
public boolean isEmpty()
public void clear()
public boolean containsKey(K key)
Copyright © 2018. All rights reserved.