-
- All Implemented Interfaces:
public final class GraphQLContextExtensionsKt
-
-
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 -
-
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
-
-
-
-