public static enum BuilderFactory.TypeInference extends java.lang.Enum<BuilderFactory.TypeInference>
| Enum Constant and Description |
|---|
EXPLICIT_TYPES
Types must be specified explicitly in the source, even when the diamond operator is
available.
|
INFERRED_TYPES
Types should be inferred where possible, as specifying them explicitly would be redundant.
|
| Modifier and Type | Method and Description |
|---|---|
static BuilderFactory.TypeInference |
valueOf(java.lang.String name)
Returns 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.
|
public static final BuilderFactory.TypeInference EXPLICIT_TYPES
Use this when the expression result is not immediately assigned to a variable or returned from a method.
public static final BuilderFactory.TypeInference INFERRED_TYPES
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.
public static BuilderFactory.TypeInference[] values()
for (BuilderFactory.TypeInference c : BuilderFactory.TypeInference.values()) System.out.println(c);
public static BuilderFactory.TypeInference valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null