Enum DefaultOperationBuilder.TypeInference
- java.lang.Object
-
- java.lang.Enum<DefaultOperationBuilder.TypeInference>
-
- io.leangen.graphql.metadata.strategy.query.DefaultOperationBuilder.TypeInference
-
- All Implemented Interfaces:
Serializable,Comparable<DefaultOperationBuilder.TypeInference>
- Enclosing class:
- DefaultOperationBuilder
public static enum DefaultOperationBuilder.TypeInference extends Enum<DefaultOperationBuilder.TypeInference>
NONE- No type inference. Results in aTypeMappingExceptionif multiple different types are encountered.LIMITED- Automatically infer the common super type. Results in aTypeMappingExceptionif no common ancestors exceptObject,Serializable,Cloneable,ComparableorAnnotationare found.UNRESTRICTED- Automatically infer the common super type. Results inObjectif no common ancestors are found.
-
-
Field Summary
Fields Modifier and Type Field Description booleanallowObjectbooleaninferTypes
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DefaultOperationBuilder.TypeInferencevalueOf(String name)Returns the enum constant of this type with the specified name.static DefaultOperationBuilder.TypeInference[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final DefaultOperationBuilder.TypeInference NONE
-
LIMITED
public static final DefaultOperationBuilder.TypeInference LIMITED
-
UNLIMITED
public static final DefaultOperationBuilder.TypeInference UNLIMITED
-
-
Method Detail
-
values
public static DefaultOperationBuilder.TypeInference[] 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 (DefaultOperationBuilder.TypeInference c : DefaultOperationBuilder.TypeInference.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultOperationBuilder.TypeInference 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
-
-