Package graphql
Class DirectivesUtil.DirectivesHolder
- java.lang.Object
-
- graphql.DirectivesUtil.DirectivesHolder
-
- Enclosing class:
- DirectivesUtil
public static class DirectivesUtil.DirectivesHolder extends java.lang.Object
A holder class that breaks a list of directives into maps to be more easily accessible in using classes
-
-
Constructor Summary
Constructors Constructor Description DirectivesHolder(java.util.Collection<GraphQLDirective> allDirectives, java.util.Collection<GraphQLAppliedDirective> allAppliedDirectives)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DirectivesUtil.DirectivesHolder
create(java.util.List<GraphQLDirective> directives, java.util.List<GraphQLAppliedDirective> appliedDirectives)
com.google.common.collect.ImmutableMap<java.lang.String,java.util.List<GraphQLAppliedDirective>>
getAllAppliedDirectivesByName()
com.google.common.collect.ImmutableMap<java.lang.String,java.util.List<GraphQLDirective>>
getAllDirectivesByName()
GraphQLAppliedDirective
getAppliedDirective(java.lang.String directiveName)
java.util.List<GraphQLAppliedDirective>
getAppliedDirectives()
java.util.List<GraphQLAppliedDirective>
getAppliedDirectives(java.lang.String directiveName)
GraphQLDirective
getDirective(java.lang.String directiveName)
java.util.List<GraphQLDirective>
getDirectives()
java.util.List<GraphQLDirective>
getDirectives(java.lang.String directiveName)
com.google.common.collect.ImmutableMap<java.lang.String,GraphQLDirective>
getDirectivesByName()
java.lang.String
toString()
-
-
-
Constructor Detail
-
DirectivesHolder
public DirectivesHolder(java.util.Collection<GraphQLDirective> allDirectives, java.util.Collection<GraphQLAppliedDirective> allAppliedDirectives)
-
-
Method Detail
-
create
public static DirectivesUtil.DirectivesHolder create(java.util.List<GraphQLDirective> directives, java.util.List<GraphQLAppliedDirective> appliedDirectives)
-
getAllDirectivesByName
public com.google.common.collect.ImmutableMap<java.lang.String,java.util.List<GraphQLDirective>> getAllDirectivesByName()
-
getDirectivesByName
public com.google.common.collect.ImmutableMap<java.lang.String,GraphQLDirective> getDirectivesByName()
-
getDirectives
public java.util.List<GraphQLDirective> getDirectives()
-
getDirective
public GraphQLDirective getDirective(java.lang.String directiveName)
-
getDirectives
public java.util.List<GraphQLDirective> getDirectives(java.lang.String directiveName)
-
getAllAppliedDirectivesByName
public com.google.common.collect.ImmutableMap<java.lang.String,java.util.List<GraphQLAppliedDirective>> getAllAppliedDirectivesByName()
-
getAppliedDirectives
public java.util.List<GraphQLAppliedDirective> getAppliedDirectives()
-
getAppliedDirectives
public java.util.List<GraphQLAppliedDirective> getAppliedDirectives(java.lang.String directiveName)
-
getAppliedDirective
public GraphQLAppliedDirective getAppliedDirective(java.lang.String directiveName)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-