Class MapContext

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.

        < extends ,​ extends >
    • Constructor Summary

      Constructors 
      Constructor Description
      MapContext()  
      <,​> map)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      boolean  o)  
      boolean  o)  
      <<,​>> entrySet()  
       o)  
      protected <E> E  key, <E> type)
      Performs a get operation but additionally ensures that the value returned is of the specified type.
      boolean isEmpty()  
      <> keySet()  
      protected void  key,  value)
      Places a value in this context map under the given key only if the given value argument is not null.
       s,  o)  
      void <? extends ,​?> map)  
       o)  
      int size()  
      <> values()  
      • Methods inherited from class java.lang.

        , , , , , , , , , ,
      • Methods inherited from interface java.util.

        , , , , , , , , , , , ,
    • Constructor Detail

      • MapContext

        public MapContext()
      • MapContext

        public MapContext​(<,​> map)
    • Method Detail

      • getTypedValue

        protected <E> E getTypedValue​( key,
                                      <E> type)
        Performs a get operation but additionally ensures that the value returned is of the specified type. If there is no value, null is returned.
        Type Parameters:
        E - the expected type of the value
        Parameters:
        key - the attribute key to look up a value
        type - the expected type of the value
        Returns:
        the typed value or null if the attribute does not exist.
      • nullSafePut

        protected void nullSafePut​( key,
                                    value)
        Places a value in this context map under the given key only if the given value argument is not null.
        Parameters:
        key - the attribute key under which the non-null value will be stored
        value - the non-null value to store. If null, this method does nothing and returns immediately.
      • size

        public int size()
        Specified by:
         in interface <,​>
      • isEmpty

        public boolean isEmpty()
        Specified by:
         in interface <,​>
      • containsKey

        public boolean containsKey​( o)
        Specified by:
         in interface <,​>
      • containsValue

        public boolean containsValue​( o)
        Specified by:
         in interface <,​>
      • get

        public  get​( o)
        Specified by:
         in interface <,​>
      • put

        public  put​( s,
                           o)
        Specified by:
         in interface <,​>
      • remove

        public  remove​( o)
        Specified by:
         in interface <,​>
      • putAll

        public void putAll​(<? extends ,​?> map)
        Specified by:
         in interface <,​>
      • clear

        public void clear()
        Specified by:
         in interface <,​>
      • keySet

        public <> keySet()
        Specified by:
         in interface <,​>
      • values

        public <> values()
        Specified by:
         in interface <,​>
      • entrySet

        public <<,​>> entrySet()
        Specified by:
         in interface <,​>