Class MapScope

  • All Implemented Interfaces:
    Scope

    public class MapScope
    extends java.lang.Object
    implements Scope
    • Constructor Summary

      Constructors 
      Constructor Description
      MapScope​(java.util.Map<ContextKey,​java.lang.String> values)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.String> get​(ContextKey contextKey)  
      java.util.Set<ContextKey> keys()  
      static MapScope singleContext​(java.lang.String context, java.util.Map<java.lang.String,​java.lang.String> values)  
      • Methods inherited from class java.lang.Object

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

      • MapScope

        public MapScope​(java.util.Map<ContextKey,​java.lang.String> values)
    • Method Detail

      • get

        public java.util.Optional<java.lang.String> get​(ContextKey contextKey)
        Specified by:
        get in interface Scope
      • singleContext

        public static MapScope singleContext​(java.lang.String context,
                                             java.util.Map<java.lang.String,​java.lang.String> values)