org.openjena.atlas.lib
Class Map2<K,V>

java.lang.Object
  extended by 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.


Constructor Summary
Map2(Map<K,V> map1, Map2<K,V> map2)
           
 
Method Summary
 boolean containsKey(K key)
           
 V get(K key)
           
 boolean isEmpty()
           
 Iterator<K> iterator()
           
 void put(K key, V value)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Map2

public Map2(Map<K,V> map1,
            Map2<K,V> map2)
Method Detail

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