Package graphql
Class DirectivesUtil.DirectivesHolder
java.lang.Object
graphql.DirectivesUtil.DirectivesHolder
- Enclosing class:
DirectivesUtil
A holder class that breaks a list of directives into maps to be more easily accessible in using classes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<GraphQLAppliedDirective> private final com.google.common.collect.ImmutableMap
<String, List<GraphQLAppliedDirective>> private final List
<GraphQLDirective> private final com.google.common.collect.ImmutableMap
<String, List<GraphQLDirective>> private final com.google.common.collect.ImmutableMap
<String, GraphQLDirective> -
Constructor Summary
ConstructorsConstructorDescriptionDirectivesHolder
(Collection<GraphQLDirective> allDirectives, Collection<GraphQLAppliedDirective> allAppliedDirectives) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableMap
<String, List<GraphQLAppliedDirective>> com.google.common.collect.ImmutableMap
<String, List<GraphQLDirective>> getAppliedDirective
(String directiveName) getAppliedDirectives
(String directiveName) getDirective
(String directiveName) getDirectives
(String directiveName) com.google.common.collect.ImmutableMap
<String, GraphQLDirective> toString()
-
Field Details
-
allDirectivesByName
private final com.google.common.collect.ImmutableMap<String,List<GraphQLDirective>> allDirectivesByName -
nonRepeatableDirectivesByName
private final com.google.common.collect.ImmutableMap<String,GraphQLDirective> nonRepeatableDirectivesByName -
allDirectives
-
allAppliedDirectivesByName
private final com.google.common.collect.ImmutableMap<String,List<GraphQLAppliedDirective>> allAppliedDirectivesByName -
allAppliedDirectives
-
-
Constructor Details
-
DirectivesHolder
public DirectivesHolder(Collection<GraphQLDirective> allDirectives, Collection<GraphQLAppliedDirective> allAppliedDirectives)
-
-
Method Details
-
getAllDirectivesByName
public com.google.common.collect.ImmutableMap<String,List<GraphQLDirective>> getAllDirectivesByName() -
getDirectivesByName
-
getDirectives
-
getDirective
-
getDirectives
-
getAllAppliedDirectivesByName
public com.google.common.collect.ImmutableMap<String,List<GraphQLAppliedDirective>> getAllAppliedDirectivesByName() -
getAppliedDirectives
-
getAppliedDirectives
-
getAppliedDirective
-
toString
-