org.apache.geronimo.console.infomanager
Class ShrinkingMap

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.TreeMap
          extended byorg.apache.geronimo.console.infomanager.ShrinkingMap
All Implemented Interfaces:
Cloneable, Map, Serializable, SortedMap

public class ShrinkingMap
extends TreeMap

A Map that can remove items as they are accessed, which makes it easier to show a list of the remaining items.

Version:
$Rev: 355877 $ $Date: 2005-12-11 03:48:27 +0100 (Sun, 11 Dec 2005) $
See Also:
Serialized Form

Constructor Summary
ShrinkingMap()
           
ShrinkingMap(Map defaults)
           
 
Method Summary
 Object get(Object key)
           
 Map getRemainingItems()
           
 boolean isShrinking()
           
 void setShrinking(boolean shrinking)
           
 
Methods inherited from class java.util.TreeMap
clear, clone, comparator, containsKey, containsValue, entrySet, firstKey, headMap, keySet, lastKey, put, putAll, remove, size, subMap, tailMap, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode, isEmpty
 

Constructor Detail

ShrinkingMap

public ShrinkingMap()

ShrinkingMap

public ShrinkingMap(Map defaults)
Method Detail

isShrinking

public boolean isShrinking()

setShrinking

public void setShrinking(boolean shrinking)

get

public Object get(Object key)

getRemainingItems

public Map getRemainingItems()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.