org.openjena.atlas.lib
Class Map2<K,V>
java.lang.Object
org.openjena.atlas.lib.Map2<K,V>
- All Implemented Interfaces:
- Iterable<K>
public class Map2<K,V>
- extends Object
- implements 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.
Map2
public Map2(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 Iterator<K> iterator()
- Specified by:
iterator
in interface Iterable<K>
isEmpty
public boolean isEmpty()
size
public int size()
Licenced under the Apache License, Version 2.0