oemware.core.util
Class LruList<E>

java.lang.Object
  extended by oemware.core.util.LruList<E>

public final class LruList<E>
extends java.lang.Object

A simple lru list. Access to this list is NOT thread-safe.


Constructor Summary
LruList(int pMaxSize)
          Create a new lru linked hash map.
 
Method Summary
 void clear()
           
 boolean contains(java.lang.Object o)
           
 java.util.Iterator<E> entries()
           
 void put(E e)
          Use this method for the lru.
 boolean remove(java.lang.Object o)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LruList

public LruList(int pMaxSize)
Create a new lru linked hash map.

Parameters:
pMaxSize - The max size of the list.
Method Detail

put

public final void put(E e)
Use this method for the lru.

Parameters:
e - The element.

remove

public boolean remove(java.lang.Object o)

contains

public boolean contains(java.lang.Object o)

entries

public java.util.Iterator<E> entries()

size

public int size()

clear

public void clear()


Copyright © 2009 Deft Labs - Released under LGPL, Version 3.0