- java.lang.Object
-
- net.kemuri9.type.ParameterizedTypeImpl
-
- All Implemented Interfaces:
ParameterizedType,Type
public class ParameterizedTypeImpl extends Object implements ParameterizedType
Implementation ofParameterizedType
-
-
Constructor Summary
Constructors Constructor Description ParameterizedTypeImpl(ParameterizedType parameterizedType)Create aParameterizedTypeImplwith the specified parametersParameterizedTypeImpl(Type ownerType, Type rawType, Type... actualTypeArguments)Create aParameterizedTypeImplwith the specified parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Type[]getActualTypeArguments()TypegetOwnerType()TypegetRawType()inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.reflect.Type
getTypeName
-
-
-
-
Constructor Detail
-
ParameterizedTypeImpl
public ParameterizedTypeImpl(ParameterizedType parameterizedType)
Create aParameterizedTypeImplwith the specified parameters- Parameters:
parameterizedType-ParameterizedTypeto copy details from- Throws:
IllegalArgumentException-- When
parameterizedTypeisnull - When
parameterizedTypeis invalid
- When
- See Also:
ParameterizedTypeImpl(Type, Type, Type...)
-
ParameterizedTypeImpl
public ParameterizedTypeImpl(Type ownerType, Type rawType, Type... actualTypeArguments)
Create aParameterizedTypeImplwith the specified parameters- Parameters:
ownerType-Typethat owns this type. In different terms, theTypethat this type is nested within. may benullrawType-Typethat is being parameterizedactualTypeArguments-Typearguments that parameterizerawType- Throws:
IllegalArgumentException-- When
rawTypeisnull - When
actualTypeArgumentsisnull - When
actualTypeArgumentscontains anull
- When
-
-
Method Detail
-
getActualTypeArguments
public Type[] getActualTypeArguments()
- Specified by:
getActualTypeArgumentsin interfaceParameterizedType
-
getRawType
public Type getRawType()
- Specified by:
getRawTypein interfaceParameterizedType
-
getOwnerType
public Type getOwnerType()
- Specified by:
getOwnerTypein interfaceParameterizedType
-
-