@PublicApi public class GraphQLNonNull extends java.lang.Object implements GraphQLType, GraphQLInputType, GraphQLOutputType, GraphQLModifiedType
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHILD_WRAPPED_TYPE |
Constructor and Description |
---|
GraphQLNonNull(GraphQLType wrappedType) |
Modifier and Type | Method and Description |
---|---|
TraversalControl |
accept(TraverserContext<GraphQLSchemaElement> context,
GraphQLTypeVisitor visitor) |
boolean |
equals(java.lang.Object o) |
java.util.List<GraphQLSchemaElement> |
getChildren() |
SchemaElementChildrenContainer |
getChildrenWithTypeReferences() |
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)) |
java.lang.String |
toString() |
GraphQLSchemaElement |
withNewChildren(SchemaElementChildrenContainer newChildren) |
public static final java.lang.String CHILD_WRAPPED_TYPE
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 boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public TraversalControl accept(TraverserContext<GraphQLSchemaElement> context, GraphQLTypeVisitor visitor)
accept
in interface GraphQLSchemaElement
public java.util.List<GraphQLSchemaElement> getChildren()
getChildren
in interface GraphQLSchemaElement
public SchemaElementChildrenContainer getChildrenWithTypeReferences()
getChildrenWithTypeReferences
in interface GraphQLSchemaElement
public GraphQLSchemaElement withNewChildren(SchemaElementChildrenContainer newChildren)
withNewChildren
in interface GraphQLSchemaElement