Class ObjectScope<T>

  • All Implemented Interfaces:
    Scope

    public class ObjectScope<T>
    extends java.lang.Object
    implements Scope
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectScope​(T object)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.String> get​(ContextKey contextKey)  
      java.util.Set<ContextKey> keys()  
      ObjectScope<T> map​(java.lang.String context, java.lang.String key, java.util.function.Function<T,​java.util.Optional<java.lang.String>> accessor)  
      • Methods inherited from class java.lang.Object

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

      • ObjectScope

        public ObjectScope​(T object)
    • Method Detail

      • get

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

        public ObjectScope<T> map​(java.lang.String context,
                                  java.lang.String key,
                                  java.util.function.Function<T,​java.util.Optional<java.lang.String>> accessor)