Interface ParameterizedType
- All Superinterfaces:
AnnotationTarget, Type
A parameterized type. That is, a generic class together with
a list of type arguments. The list of type arguments
has the same shape as the class's list of type parameters.
- Since:
- 4.0
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault ParameterizedTypeReturns this type as a parameterized type.default ClassInfoReturns the declaration of the generic class that was parameterized with a list of type arguments to form this parameterized type.Returns the type of the generic class that was parameterized with a list of type arguments to form this parameterized type.default Type.Kindkind()Returns the kind of this type.Returns the list of type arguments that were applied to a generic class to form this parameterized type.Methods inherited from interface AnnotationTarget
annotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotationMethods inherited from interface Type
asArray, asClass, asDeclaration, asPrimitive, asType, asTypeVariable, asVoid, asWildcardType, isArray, isClass, isDeclaration, isParameterizedType, isPrimitive, isType, isTypeVariable, isVoid, isWildcardType
-
Method Details
-
genericClass
-
typeArguments
-
declaration
Returns the declaration of the generic class that was parameterized with a list of type arguments to form this parameterized type.- Returns:
- the declaration of the generic class, never
null
-
kind
-
asParameterizedType
Description copied from interface:TypeReturns this type as a parameterized type.- Specified by:
asParameterizedTypein interfaceType- Returns:
- this parameterized type, never
null
-