@PublicApi public class GraphQLNonNull extends Object implements GraphQLType, GraphQLInputType, GraphQLOutputType, GraphQLModifiedType
Constructor and Description |
---|
GraphQLNonNull(GraphQLType wrappedType) |
Modifier and Type | Method and Description |
---|---|
TraversalControl |
accept(TraverserContext<GraphQLType> context,
GraphQLTypeVisitor visitor)
Double-dispatch entry point.
|
boolean |
equals(Object o) |
List<GraphQLType> |
getChildren() |
String |
getName() |
GraphQLType |
getWrappedType() |
int |
hashCode() |
static GraphQLNonNull |
nonNull(GraphQLType wrappedType)
A factory method for creating non null types so that when used with static imports allows
more readable code such as
.type(nonNull(GraphQLString)) |
String |
toString() |
public GraphQLNonNull(GraphQLType wrappedType)
public static GraphQLNonNull nonNull(GraphQLType wrappedType)
.type(nonNull(GraphQLString))
wrappedType
- the type to wrap as being non nullpublic GraphQLType getWrappedType()
getWrappedType
in interface GraphQLModifiedType
public String getName()
getName
in interface GraphQLType
[_A-Za-z][_0-9A-Za-z]*
public TraversalControl accept(TraverserContext<GraphQLType> context, GraphQLTypeVisitor visitor)
GraphQLType
Node
, see accept(...) for more details about the pattern.accept
in interface GraphQLType
context
- TraverserContext bound to this graphQL type objectvisitor
- Visitor instance that performs actual processing on the types(s)public List<GraphQLType> getChildren()
getChildren
in interface GraphQLType
Copyright © 2019. All rights reserved.