T
- the generic typepublic class MRUCache<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
MRUCache.MRULinkedListIterator
The Class MRULinkedListIterator.
|
Constructor and Description |
---|
MRUCache(int size)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
void |
append(T node)
Append.
|
void |
clear()
Clear.
|
MRUCacheEntry<T> |
getHead()
Gets the first.
|
java.util.Iterator<T> |
iterator()
Iterator.
|
T |
removeHead()
Removes the head.
|
int |
size()
Size.
|
void |
touch(T node)
Touch.
|
public MRUCache(int size)
size
- the sizepublic void append(T node)
node
- the nodepublic void clear()
public MRUCacheEntry<T> getHead()
public java.util.Iterator<T> iterator()
public T removeHead()
public int size()
public void touch(T node)
node
- the node