Package graphql.introspection
Enum Introspection.TypeKind
- java.lang.Object
-
- java.lang.Enum<Introspection.TypeKind>
-
- graphql.introspection.Introspection.TypeKind
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Introspection.TypeKind>
- Enclosing class:
- Introspection
public static enum Introspection.TypeKind extends java.lang.Enum<Introspection.TypeKind>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Introspection.TypeKind
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Introspection.TypeKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SCALAR
public static final Introspection.TypeKind SCALAR
-
OBJECT
public static final Introspection.TypeKind OBJECT
-
INTERFACE
public static final Introspection.TypeKind INTERFACE
-
UNION
public static final Introspection.TypeKind UNION
-
ENUM
public static final Introspection.TypeKind ENUM
-
INPUT_OBJECT
public static final Introspection.TypeKind INPUT_OBJECT
-
LIST
public static final Introspection.TypeKind LIST
-
NON_NULL
public static final Introspection.TypeKind NON_NULL
-
-
Method Detail
-
values
public static Introspection.TypeKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Introspection.TypeKind c : Introspection.TypeKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Introspection.TypeKind valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-