org.ujmp.core.collections
Class LazyMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by org.ujmp.core.collections.AbstractMap<K,V>
          extended by org.ujmp.core.collections.LazyMap<K,V>
All Implemented Interfaces:
Serializable, Map<K,V>

public class LazyMap<K,V>
extends AbstractMap<K,V>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
LazyMap()
           
 
Method Summary
 void clear()
           
 V get(Object key)
           
 Set<K> keySet()
           
 void put(K key, Callable<V> value)
           
 V put(K key, V value)
           
 V remove(Object key)
           
 int size()
           
 
Methods inherited from class org.ujmp.core.collections.AbstractMap
containsKey, containsValue, entrySet, isEmpty, putAll, values
 
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LazyMap

public LazyMap()
Method Detail

clear

public void clear()
Specified by:
clear in interface Map<K,V>
Specified by:
clear in class AbstractMap<K,V>

get

public V get(Object key)
Specified by:
get in interface Map<K,V>
Specified by:
get in class AbstractMap<K,V>

keySet

public Set<K> keySet()
Specified by:
keySet in interface Map<K,V>
Specified by:
keySet in class AbstractMap<K,V>

put

public void put(K key,
                Callable<V> value)

put

public V put(K key,
             V value)
Specified by:
put in interface Map<K,V>
Specified by:
put in class AbstractMap<K,V>

remove

public V remove(Object key)
Specified by:
remove in interface Map<K,V>
Specified by:
remove in class AbstractMap<K,V>

size

public int size()
Specified by:
size in interface Map<K,V>
Specified by:
size in class AbstractMap<K,V>


Copyright © 2010. All Rights Reserved.