org.openjena.atlas.lib
Class Map2<K,V>
java.lang.Object
org.openjena.atlas.lib.Map2<K,V>
- All Implemented Interfaces:
- java.lang.Iterable<K>
public class Map2<K,V>
- extends java.lang.Object
- implements java.lang.Iterable<K>
A map with parent sharing. New entries go into a map but lookup is passed to
the parent map if nothing is found at this level.
|
Constructor Summary |
Map2(java.util.Map<K,V> map1,
Map2<K,V> map2)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Map2
public Map2(java.util.Map<K,V> map1,
Map2<K,V> map2)
containsKey
public boolean containsKey(K key)
get
public V get(K key)
put
public void put(K key,
V value)
iterator
public java.util.Iterator<K> iterator()
- Specified by:
iterator in interface java.lang.Iterable<K>
isEmpty
public boolean isEmpty()
size
public int size()
Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.