@PublicApi public class GraphQLList extends java.lang.Object implements GraphQLType, GraphQLInputType, GraphQLOutputType, GraphQLModifiedType, GraphQLNullableType
| Constructor and Description |
|---|
GraphQLList(GraphQLType wrappedType) |
| Modifier and Type | Method and Description |
|---|---|
TraversalControl |
accept(TraverserContext<GraphQLType> context,
GraphQLTypeVisitor visitor)
Double-dispatch entry point.
|
boolean |
equals(java.lang.Object o) |
java.util.List<GraphQLType> |
getChildren() |
java.lang.String |
getName() |
GraphQLType |
getWrappedType() |
int |
hashCode() |
static GraphQLList |
list(GraphQLType wrappedType)
A factory method for creating list types so that when used with static imports allows
more readable code such as
.type(list(GraphQLString)) |
java.lang.String |
toString() |
public GraphQLList(GraphQLType wrappedType)
public static GraphQLList list(GraphQLType wrappedType)
.type(list(GraphQLString)) wrappedType - the type to wrap as being a listpublic GraphQLType getWrappedType()
getWrappedType in interface GraphQLModifiedTypepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getName()
getName in interface GraphQLType[_A-Za-z][_0-9A-Za-z]*public TraversalControl accept(TraverserContext<GraphQLType> context, GraphQLTypeVisitor visitor)
GraphQLTypeNode, see accept(...) for more details about the pattern.accept in interface GraphQLTypecontext - TraverserContext bound to this graphQL type objectvisitor - Visitor instance that performs actual processing on the types(s)public java.util.List<GraphQLType> getChildren()
getChildren in interface GraphQLTypepublic java.lang.String toString()
toString in class java.lang.Object