de.grogra.util
Class Map.Chain

java.lang.Object
  extended by de.grogra.util.Map.Chain
All Implemented Interfaces:
Map
Enclosing interface:
Map

public static class Map.Chain
extends java.lang.Object
implements Map


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.grogra.util.Map
Map.Chain
 
Field Summary
 
Fields inherited from interface de.grogra.util.Map
DEFAULT_VALUE, EMPTY_MAP
 
Constructor Summary
Map.Chain(Map a)
           
Map.Chain(Map a, Map b)
           
 
Method Summary
static Map add(Map a, Map b)
           
 java.lang.Object get(java.lang.Object key, java.lang.Object defaultValue)
          Returns the value associated with key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Map.Chain

public Map.Chain(Map a)

Map.Chain

public Map.Chain(Map a,
                 Map b)
Method Detail

add

public static Map add(Map a,
                      Map b)

get

public java.lang.Object get(java.lang.Object key,
                            java.lang.Object defaultValue)
Description copied from interface: Map
Returns the value associated with key. If there is no value associated with key, defaultValue is returned.

Specified by:
get in interface Map
Parameters:
key - a key for the map
defaultValue - the default value
Returns:
the associated value, or defaultValue