public static enum TypeToken.Wildcards extends java.lang.Enum<TypeToken.Wildcards>
TypeToken
s created over parameterized
types.Enum Constant and Description |
---|
CAPTURE
Wildcards should be substituted with fresh
TypeVariableCapture
instances, as per
TypeVariableCapture.captureWildcardArguments(ParameterizedType) . |
INFER
Wildcards should be substituted with inference variables, with appropriate
bounds incorporated based on both type variable bounds and wildcard bounds.
|
RETAIN
Wildcards will be left alone, though capture may be necessary for
incorporation into backing
TypeResolver , as wildcards alone do not
always fully specify valid bounds. |
Modifier and Type | Method and Description |
---|---|
java.lang.annotation.Annotation |
getAnnotation() |
static TypeToken.Wildcards |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TypeToken.Wildcards[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeToken.Wildcards RETAIN
TypeResolver
, as wildcards alone do not
always fully specify valid bounds.public static final TypeToken.Wildcards INFER
public static final TypeToken.Wildcards CAPTURE
TypeVariableCapture
instances, as per
TypeVariableCapture.captureWildcardArguments(ParameterizedType)
.public static TypeToken.Wildcards[] values()
for (TypeToken.Wildcards c : TypeToken.Wildcards.values()) System.out.println(c);
public static TypeToken.Wildcards 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 nullpublic java.lang.annotation.Annotation getAnnotation()