org.onemind.commons.java.datastructure
Class MruMap.InnerMruList

java.lang.Object
  extended by org.onemind.commons.java.datastructure.MruList
      extended by org.onemind.commons.java.datastructure.MruMap.InnerMruList
All Implemented Interfaces:
java.lang.Iterable, java.util.Collection, java.util.Set
Enclosing class:
MruMap

private class MruMap.InnerMruList
extends MruList

For MruMap implementation

Version:
$Id: MruMap.java,v 1.3 2004/10/31 15:57:55 thlee Exp $ $Name: $
Author:
TiongHiang Lee (thlee@onemindsoft.org)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.onemind.commons.java.datastructure.MruList
MruList.MruEntry, MruList.MruIterator
 
Constructor Summary
MruMap.InnerMruList(long size, long timeout)
          Constructor
 
Method Summary
protected  void expireEntry(java.lang.Object obj)
          Remove the entry from the MruList
protected  void truncateEntry(java.lang.Object obj)
          Remove the object from the MruList
 
Methods inherited from class org.onemind.commons.java.datastructure.MruList
access, add, addAll, clear, contains, containsAll, expireEntries, getLastAccessTime, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, truncateEntries
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Set
equals, hashCode
 

Constructor Detail

MruMap.InnerMruList

public MruMap.InnerMruList(long size,
                           long timeout)
Constructor

Parameters:
size - the size
timeout - the timeout
Method Detail

truncateEntry

protected void truncateEntry(java.lang.Object obj)
Remove the object from the MruList

Overrides:
truncateEntry in class MruList
Parameters:
obj - the object

expireEntry

protected void expireEntry(java.lang.Object obj)
Remove the entry from the MruList

Overrides:
expireEntry in class MruList
Parameters:
obj - expire the entry