org.apache.geronimo.console.infomanager
Class ShrinkingMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.TreeMap
          extended by org.apache.geronimo.console.infomanager.ShrinkingMap
All Implemented Interfaces:
Serializable, Cloneable, Map, 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.

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)
Specified by:
get in interface Map
Overrides:
get in class TreeMap

getRemainingItems

public Map getRemainingItems()


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