Module utilities

Class Map.Chain

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

public static class Map.Chain extends Object implements Map
  • Constructor Details

    • Chain

      public Chain(Map a, Map b)
    • Chain

      public Chain(Map a)
  • Method Details

    • get

      public Object get(Object key, 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
    • add

      public static Map add(Map a, Map b)