K - The list's key type.V - The list's value type.public class MRUList<K,V> extends java.util.LinkedList<MRUList.Entry<K,V>>
| Modifier and Type | Class and Description |
|---|---|
static class |
MRUList.Entry<K,V>
MRU list entry object.
|
| Constructor and Description |
|---|
MRUList(int maxSize)
Construct
MRUList. |
| Modifier and Type | Method and Description |
|---|---|
V |
use(K key)
Use MRU list entry.
|
void |
use(K key,
V value)
Use MRU list entry.
|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArrayequals, hashCode, listIterator, removeRange, subListcontainsAll, isEmpty, removeAll, retainAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitpublic MRUList(int maxSize)
MRUList.maxSize - The maximum size of the MRU list.