@PublicApi public class GraphQLList extends java.lang.Object implements GraphQLType, GraphQLInputType, GraphQLOutputType, GraphQLModifiedType, GraphQLNullableType
See https://graphql.org/learn/schema/#lists-and-non-null for more details on the concept
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CHILD_WRAPPED_TYPE |
| Constructor and Description |
|---|
GraphQLList(GraphQLType wrappedType) |
| Modifier and Type | Method and Description |
|---|---|
TraversalControl |
accept(TraverserContext<GraphQLSchemaElement> context,
GraphQLTypeVisitor visitor) |
GraphQLSchemaElement |
copy()
Each GraphQLSchemaElement should make a copy of itself when this is called.
|
boolean |
equals(java.lang.Object o)
No GraphQLSchemaElement implements `equals` because we need object identity
to treat a GraphQLSchema as an abstract graph.
|
java.util.List<GraphQLSchemaElement> |
getChildren() |
SchemaElementChildrenContainer |
getChildrenWithTypeReferences() |
GraphQLType |
getOriginalWrappedType() |
GraphQLType |
getWrappedType() |
int |
hashCode()
No GraphQLSchemaElement implements `equals/hashCode` because we need object identity
to treat a GraphQLSchema as an abstract graph.
|
boolean |
isEqualTo(java.lang.Object o) |
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() |
GraphQLSchemaElement |
withNewChildren(SchemaElementChildrenContainer newChildren) |
public static final java.lang.String CHILD_WRAPPED_TYPE
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 GraphQLType getOriginalWrappedType()
public boolean isEqualTo(java.lang.Object o)
public TraversalControl accept(TraverserContext<GraphQLSchemaElement> context, GraphQLTypeVisitor visitor)
accept in interface GraphQLSchemaElementpublic java.util.List<GraphQLSchemaElement> getChildren()
getChildren in interface GraphQLSchemaElementpublic SchemaElementChildrenContainer getChildrenWithTypeReferences()
getChildrenWithTypeReferences in interface GraphQLSchemaElementpublic GraphQLSchemaElement withNewChildren(SchemaElementChildrenContainer newChildren)
withNewChildren in interface GraphQLSchemaElementpublic GraphQLSchemaElement copy()
GraphQLSchemaElementcopy in interface GraphQLSchemaElementpublic java.lang.String toString()
toString in class java.lang.Objectpublic final boolean equals(java.lang.Object o)
equals in interface GraphQLSchemaElementequals in class java.lang.Objecto - the reference object with which to compare.true if this object is the same as the obj
argument; false otherwise.public final int hashCode()
hashCode in interface GraphQLSchemaElementhashCode in class java.lang.Object