Package nonapi.io.github.classgraph.json
Class ParameterizedTypeImpl
- java.lang.Object
-
- nonapi.io.github.classgraph.json.ParameterizedTypeImpl
-
- All Implemented Interfaces:
java.lang.reflect.ParameterizedType,java.lang.reflect.Type
class ParameterizedTypeImpl extends java.lang.Object implements java.lang.reflect.ParameterizedTypeAn implementation ofParameterizedType, used to replace type variables with concrete types.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.Type[]actualTypeArgumentsThe actual type arguments.static java.lang.reflect.TypeLIST_OF_UNKNOWN_TYPEThe type parameter ofListinstances of unknown generic type.static java.lang.reflect.TypeMAP_OF_UNKNOWN_TYPEThe type parameters ofMapinstances of unknown generic type.private java.lang.reflect.TypeownerTypeThe owner type.private java.lang.Class<?>rawTypeThe raw type.
-
Constructor Summary
Constructors Constructor Description ParameterizedTypeImpl(java.lang.Class<?> rawType, java.lang.reflect.Type[] actualTypeArguments, java.lang.reflect.Type ownerType)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.reflect.Type[]getActualTypeArguments()java.lang.reflect.TypegetOwnerType()java.lang.Class<?>getRawType()inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
actualTypeArguments
private final java.lang.reflect.Type[] actualTypeArguments
The actual type arguments.
-
rawType
private final java.lang.Class<?> rawType
The raw type.
-
ownerType
private final java.lang.reflect.Type ownerType
The owner type.
-
MAP_OF_UNKNOWN_TYPE
public static final java.lang.reflect.Type MAP_OF_UNKNOWN_TYPE
The type parameters ofMapinstances of unknown generic type.
-
LIST_OF_UNKNOWN_TYPE
public static final java.lang.reflect.Type LIST_OF_UNKNOWN_TYPE
The type parameter ofListinstances of unknown generic type.
-
-
Method Detail
-
getActualTypeArguments
public java.lang.reflect.Type[] getActualTypeArguments()
- Specified by:
getActualTypeArgumentsin interfacejava.lang.reflect.ParameterizedType
-
getRawType
public java.lang.Class<?> getRawType()
- Specified by:
getRawTypein interfacejava.lang.reflect.ParameterizedType
-
getOwnerType
public java.lang.reflect.Type getOwnerType()
- Specified by:
getOwnerTypein interfacejava.lang.reflect.ParameterizedType
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-