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.

Version:
$Id: LruList.java 13 2008-06-15 19:43:04Z oemware $

Constructor Summary
LruList(int pMaxSize)
          Create a new lru linked hash map.
 
Method Summary
 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)
           
 
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 final boolean remove(java.lang.Object o)

contains

public final boolean contains(java.lang.Object o)

entries

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


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