Package 

Class GraphQLContextExtensionsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any> T get(GraphQLContext $self) Returns a value in the context by KClass key
      final static <T extends Any> T getOrDefault(GraphQLContext $self, T defaultValue) Returns a value in the context by KClass key
      final static <T extends Any> T getOrElse(GraphQLContext $self, Function0<T> defaultValue) Returns a value in the context by KClass key
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • get

         final static <T extends Any> T get(GraphQLContext $self)

        Returns a value in the context by KClass key

      • getOrDefault

         final static <T extends Any> T getOrDefault(GraphQLContext $self, T defaultValue)

        Returns a value in the context by KClass key

        Parameters:
        defaultValue - the default value to use if there is no KClass key entry
      • getOrElse

         final static <T extends Any> T getOrElse(GraphQLContext $self, Function0<T> defaultValue)

        Returns a value in the context by KClass key

        Parameters:
        defaultValue - function to invoke if there is no KClass key entry