Package net.sf.tweety.arg.adf.util
Class LazyMap<K,V>
- java.lang.Object
-
- net.sf.tweety.arg.adf.util.LazyMap<K,V>
-
- Type Parameters:
K
- the keyV
- the value
- All Implemented Interfaces:
java.util.Map<K,V>
public final class LazyMap<K,V> extends java.lang.Object implements java.util.Map<K,V>
Lazily computes missing values. If a key is mapped to null, the value is computed by the provided function on its first access.- Author:
- Mathias Hofer
-
-
Method Summary
Modifier and Type Method Description void
clear()
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
V
get(java.lang.Object key)
boolean
isEmpty()
java.util.Set<K>
keySet()
V
put(K key, V value)
void
putAll(java.util.Map<? extends K,? extends V> m)
V
remove(java.lang.Object key)
int
size()
java.util.Collection<V>
values()
-