Enum BuilderFactory.TypeInference
java.lang.Object
java.lang.Enum<BuilderFactory.TypeInference>
org.inferred.freebuilder.processor.BuilderFactory.TypeInference
- All Implemented Interfaces:
Serializable, Comparable<BuilderFactory.TypeInference>, java.lang.constant.Constable
- Enclosing class:
BuilderFactory
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTypes must be specified explicitly in the source, even when the diamond operator is available.Types should be inferred where possible, as specifying them explicitly would be redundant. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BuilderFactory.TypeInferenceReturns the enum constant of this type with the specified name.static BuilderFactory.TypeInference[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EXPLICIT_TYPES
Types must be specified explicitly in the source, even when the diamond operator is available.Use this when the expression result is not immediately assigned to a variable or returned from a method.
-
INFERRED_TYPES
Types should be inferred where possible, as specifying them explicitly would be redundant.Use this when the expression result is immediately assigned to a variable or returned from a method. Do not use this when the expression result is passed directly into a method, as Java 6+7 cannot do type inference in this situation.
-
-
Constructor Details
-
TypeInference
private TypeInference()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-