Package io.smallrye.graphql.schema.model
Enum WrapperType
- java.lang.Object
-
- java.lang.Enum<WrapperType>
-
- io.smallrye.graphql.schema.model.WrapperType
-
- All Implemented Interfaces:
Serializable
,Comparable<WrapperType>
public enum WrapperType extends Enum<WrapperType>
Represent an wrapper type in the Schema.- Author:
- Phillip Kruger ([email protected])
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY
COLLECTION
MAP
OPTIONAL
UNKNOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WrapperType
valueOf(String name)
Returns the enum constant of this type with the specified name.static WrapperType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPTIONAL
public static final WrapperType OPTIONAL
-
COLLECTION
public static final WrapperType COLLECTION
-
MAP
public static final WrapperType MAP
-
ARRAY
public static final WrapperType ARRAY
-
UNKNOWN
public static final WrapperType UNKNOWN
-
-
Method Detail
-
values
public static WrapperType[] 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 (WrapperType c : WrapperType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WrapperType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-