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
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<GraphQLAppliedDirective>
allAppliedDirectives
private com.google.common.collect.ImmutableMap<java.lang.String,java.util.List<GraphQLAppliedDirective>>
allAppliedDirectivesByName
private java.util.List<GraphQLDirective>
allDirectives
private com.google.common.collect.ImmutableMap<java.lang.String,java.util.List<GraphQLDirective>>
allDirectivesByName
private com.google.common.collect.ImmutableMap<java.lang.String,GraphQLDirective>
nonRepeatableDirectivesByName
-
Constructor Summary
Constructors Constructor Description DirectivesHolder(java.util.Collection<GraphQLDirective> allDirectives, java.util.Collection<GraphQLAppliedDirective> allAppliedDirectives)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
-
-
-
Field Detail
-
allDirectivesByName
private final com.google.common.collect.ImmutableMap<java.lang.String,java.util.List<GraphQLDirective>> allDirectivesByName
-
nonRepeatableDirectivesByName
private final com.google.common.collect.ImmutableMap<java.lang.String,GraphQLDirective> nonRepeatableDirectivesByName
-
allDirectives
private final java.util.List<GraphQLDirective> allDirectives
-
allAppliedDirectivesByName
private final com.google.common.collect.ImmutableMap<java.lang.String,java.util.List<GraphQLAppliedDirective>> allAppliedDirectivesByName
-
allAppliedDirectives
private final java.util.List<GraphQLAppliedDirective> allAppliedDirectives
-
-
Constructor Detail
-
DirectivesHolder
public DirectivesHolder(java.util.Collection<GraphQLDirective> allDirectives, java.util.Collection<GraphQLAppliedDirective> allAppliedDirectives)
-
-
Method Detail
-
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
-
-