All Implemented Interfaces:
GraphQLDirectiveContainer, GraphQLInputType, GraphQLNullableType, GraphQLOutputType, GraphQLType, GraphQLUnmodifiedType
public class GraphQLEnumType
implements GraphQLType, GraphQLInputType, GraphQLOutputType, GraphQLUnmodifiedType, GraphQLNullableType, GraphQLDirectiveContainer
A graphql enumeration type has a limited set of values.
This allows you to validate that any arguments of this type are one of the allowed values
and communicate through the type system that a field will always be one of a finite set of values.
See http://graphql.org/learn/schema/#enumeration-types for more details
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
GraphQLEnumType transform(java.util.function.Consumer< GraphQLEnumType.Builder> builderConsumer)
This helps you transform the current GraphQLEnumType into another one by starting a builder with all
the current values and allows you to transform it how you want.
builderConsumer - the consumer code that will be given a builder to transform
Returns: a new field based on calling build on that builder