Package graphql.schema
Class GraphQLList
java.lang.Object
graphql.schema.GraphQLList
- All Implemented Interfaces:
- GraphQLInputSchemaElement,- GraphQLInputType,- GraphQLModifiedType,- GraphQLNullableType,- GraphQLOutputType,- GraphQLSchemaElement,- GraphQLType
@PublicApi
public class GraphQLList
extends Object
implements GraphQLType, GraphQLInputType, GraphQLOutputType, GraphQLModifiedType, GraphQLNullableType
A modified type that indicates there is a list of the underlying wrapped type, eg a list of strings or a list of booleans.
 
See https://graphql.org/learn/schema/#lists-and-non-null for more details on the concept
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaccept(TraverserContext<GraphQLSchemaElement> context, GraphQLTypeVisitor visitor) copy()Each GraphQLSchemaElement should make a copy of itself when this is called.final booleanNo GraphQLSchemaElement implements `equals` because we need object identity to treat a GraphQLSchema as an abstract graph.final inthashCode()No GraphQLSchemaElement implements `equals/hashCode` because we need object identity to treat a GraphQLSchema as an abstract graph.booleanstatic GraphQLListlist(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))toString()withNewChildren(SchemaElementChildrenContainer newChildren) 
- 
Field Details- 
CHILD_WRAPPED_TYPE- See Also:
 
 
- 
- 
Constructor Details- 
GraphQLList
 
- 
- 
Method Details- 
listA factory method for creating list types so that when used with static imports allows more readable code such as.type(list(GraphQLString))- Parameters:
- wrappedType- the type to wrap as being a list
- Returns:
- a GraphQLList of that wrapped type
 
- 
getWrappedType- Specified by:
- getWrappedTypein interface- GraphQLModifiedType
 
- 
getOriginalWrappedType
- 
isEqualTo
- 
acceptpublic TraversalControl accept(TraverserContext<GraphQLSchemaElement> context, GraphQLTypeVisitor visitor) - Specified by:
- acceptin interface- GraphQLSchemaElement
 
- 
getChildren- Specified by:
- getChildrenin interface- GraphQLSchemaElement
 
- 
getChildrenWithTypeReferences- Specified by:
- getChildrenWithTypeReferencesin interface- GraphQLSchemaElement
 
- 
withNewChildren- Specified by:
- withNewChildrenin interface- GraphQLSchemaElement
 
- 
copyDescription copied from interface:GraphQLSchemaElementEach GraphQLSchemaElement should make a copy of itself when this is called. The copy should be included its current contents as they currently exist into a new object.- Specified by:
- copyin interface- GraphQLSchemaElement
- Returns:
- a copy of this element
 
- 
toString
- 
equalsNo GraphQLSchemaElement implements `equals` because we need object identity to treat a GraphQLSchema as an abstract graph.- Specified by:
- equalsin interface- GraphQLSchemaElement
- Overrides:
- equalsin class- Object
- Parameters:
- o- the reference object with which to compare.
- Returns:
- trueif this object is the same as the obj argument;- falseotherwise.
 
- 
hashCodepublic final int hashCode()No GraphQLSchemaElement implements `equals/hashCode` because we need object identity to treat a GraphQLSchema as an abstract graph.- Specified by:
- hashCodein interface- GraphQLSchemaElement
- Overrides:
- hashCodein class- Object
- Returns:
- a hash code value for this object.
 
 
-