Enum Class TypeKind

java.lang.Object
java.lang.Enum<TypeKind>
graphql.language.TypeKind
All Implemented Interfaces:
Serializable, Comparable<TypeKind>, Constable

@PublicApi public enum TypeKind extends Enum<TypeKind>
And enumeration of the the kind of things that can be in a graphql type system
  • Enum Constant Details

    • Operation

      public static final TypeKind Operation
    • Object

      public static final TypeKind Object
    • Interface

      public static final TypeKind Interface
    • Union

      public static final TypeKind Union
    • Enum

      public static final TypeKind Enum
    • Scalar

      public static final TypeKind Scalar
    • InputObject

      public static final TypeKind InputObject
  • Method Details

    • values

      public static TypeKind[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TypeKind valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getTypeKind

      public static TypeKind getTypeKind(TypeDefinition def)