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 voidclear()booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)java.util.Set<java.util.Map.Entry<K,V>>entrySet()Vget(java.lang.Object key)booleanisEmpty()java.util.Set<K>keySet()Vput(K key, V value)voidputAll(java.util.Map<? extends K,? extends V> m)Vremove(java.lang.Object key)intsize()java.util.Collection<V>values()
-