jlibs.core.util
Class ContextMap<K,V>
java.lang.Object
jlibs.core.util.ContextMap<K,V>
public class ContextMap<K,V>
- extends Object
This class supports chaining of maps.
If the entry is not found in current map, it will
search in parent map
- Author:
- Santhosh Kumar T
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextMap
public ContextMap()
ContextMap
public ContextMap(ContextMap<K,V> parent)
parent
public ContextMap<K,V> parent()
setParent
public void setParent(ContextMap<K,V> parent)
map
public Map<K,V> map()
createMap
protected Map<K,V> createMap()
get
public V get(Object key)
put
public void put(K key,
V value)
clear
public void clear()
keys
public Iterator<K> keys()
Copyright © 2018. All rights reserved.