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.ParameterizedType
An implementation ofParameterizedType
, used to replace type variables with concrete types.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.Type[]
actualTypeArguments
The actual type arguments.static java.lang.reflect.Type
LIST_OF_UNKNOWN_TYPE
The type parameter ofList
instances of unknown generic type.static java.lang.reflect.Type
MAP_OF_UNKNOWN_TYPE
The type parameters ofMap
instances of unknown generic type.private java.lang.reflect.Type
ownerType
The owner type.private java.lang.Class<?>
rawType
The 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 boolean
equals(java.lang.Object obj)
java.lang.reflect.Type[]
getActualTypeArguments()
java.lang.reflect.Type
getOwnerType()
java.lang.Class<?>
getRawType()
int
hashCode()
java.lang.String
toString()
-
-
-
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 ofMap
instances of unknown generic type.
-
LIST_OF_UNKNOWN_TYPE
public static final java.lang.reflect.Type LIST_OF_UNKNOWN_TYPE
The type parameter ofList
instances of unknown generic type.
-
-
Method Detail
-
getActualTypeArguments
public java.lang.reflect.Type[] getActualTypeArguments()
- Specified by:
getActualTypeArguments
in interfacejava.lang.reflect.ParameterizedType
-
getRawType
public java.lang.Class<?> getRawType()
- Specified by:
getRawType
in interfacejava.lang.reflect.ParameterizedType
-
getOwnerType
public java.lang.reflect.Type getOwnerType()
- Specified by:
getOwnerType
in interfacejava.lang.reflect.ParameterizedType
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-