ch.bind.philib.util
| Constructor and Description |
|---|
LruList(int capacity) |
public E add(E node)
LruNode to the head of the LRU.node - The new head of the LruList.null if the the size after adding the new LruNode does not exceed this list's
capacity. Otherwise the list will remove the tail (the element which wasn't accessed for the
longest amount of time) and return it.public void remove(E node)
public E removeTail()
public void moveToHead(E node)
public void clear()
public int size()
public int capacity()
public boolean hasSpace()
Copyright © 2014. All Rights Reserved.