public class ParameterizedTypeImpl extends Object implements ParameterizedType
ParameterizedType, with same Object.equals(java.lang.Object) and Object.hashCode()
as the JRE implementation.| Constructor and Description |
|---|
ParameterizedTypeImpl(Class<?> rawType,
@Nullable Type ownerType,
Type... actualTypeArguments)
Constructor.
|
ParameterizedTypeImpl(ParameterizedType parameterizedType)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Type[] |
getActualTypeArguments() |
@Nullable Type |
getOwnerType() |
Class<?> |
getRawType() |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeNamepublic ParameterizedTypeImpl(Class<?> rawType, @Nullable @Nullable Type ownerType, Type... actualTypeArguments)
You can build parameterized types dynamically with ParameterizedTypeBuilder.
rawType - the raw typeownerType - the owner typeactualTypeArguments - the type argumentspublic ParameterizedTypeImpl(ParameterizedType parameterizedType)
parameterizedType - the parameterized type to copy frompublic Type[] getActualTypeArguments()
getActualTypeArguments in interface ParameterizedTypepublic Class<?> getRawType()
getRawType in interface ParameterizedType@Nullable public @Nullable Type getOwnerType()
getOwnerType in interface ParameterizedTypeCopyright © 2023. All rights reserved.