Class MapContext

  • All Implemented Interfaces:
    CustomContext

    public class MapContext
    extends java.lang.Object
    implements CustomContext
    A CustomContext that holds data in a Map
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.lang.Object> map  
    • Constructor Summary

      Constructors 
      Constructor Description
      MapContext()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​(java.lang.String key)  
      void put​(java.lang.String key, java.lang.Object o)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • map

        private final java.util.Map<java.lang.String,​java.lang.Object> map
    • Constructor Detail

      • MapContext

        public MapContext()
    • Method Detail

      • get

        public java.lang.Object get​(java.lang.String key)
        Parameters:
        key - the key
        Returns:
        the object belonging to the key or null if not found
      • put

        public void put​(java.lang.String key,
                        java.lang.Object o)
        Parameters:
        key - the key
        o - the object to put.