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
-
Constructor Summary
ConstructorsConstructorDescriptionDirectivesHolder
(Collection<GraphQLDirective> allDirectives, Collection<GraphQLAppliedDirective> allAppliedDirectives) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(List<GraphQLDirective> directives, List<GraphQLAppliedDirective> appliedDirectives) com.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()
-
Constructor Details
-
DirectivesHolder
public DirectivesHolder(Collection<GraphQLDirective> allDirectives, Collection<GraphQLAppliedDirective> allAppliedDirectives)
-
-
Method Details
-
create
public static DirectivesUtil.DirectivesHolder create(List<GraphQLDirective> directives, List<GraphQLAppliedDirective> appliedDirectives) -
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
-