Package org.ujmp.core.collections.map
Class LazyMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- org.ujmp.core.collections.map.AbstractMap<K,V>
-
- org.ujmp.core.collections.map.LazyMap<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Map<K,V>
public class LazyMap<K,V> extends AbstractMap<K,V>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<K,java.util.concurrent.Callable<V>>
map
private static long
serialVersionUID
private boolean
useCache
-
Constructor Summary
Constructors Constructor Description LazyMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
V
get(java.lang.Object key)
private java.util.Map<K,java.util.concurrent.Callable<V>>
getMap()
java.util.Set<K>
keySet()
void
put(K key, java.util.concurrent.Callable<V> value)
V
put(K key, V value)
V
remove(java.lang.Object key)
int
size()
-
Methods inherited from class org.ujmp.core.collections.map.AbstractMap
beforeReadObject, beforeWriteObject, containsKey, containsValue, entrySet, get, getAsString, isEmpty, putAll, toString, values
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
useCache
private boolean useCache
-
-