Constructor and Description |
---|
LruList(int intendedCapacity)
Constructor for the LruList object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
update(T entry)
Removes the item from the current position and adds it to the newest (MRU) position.
|
public LruList(int intendedCapacity)
intendedCapacity
- maximum number of items this list can hold (but can be exceeded whenever needed)public boolean update(T entry)
entry
- item to updateCopyright © 2016 Egothor. All Rights Reserved.