- 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 aParameterizedTypeImpl
with the specified parametersParameterizedTypeImpl(Type ownerType, Type rawType, Type... actualTypeArguments)
Create aParameterizedTypeImpl
with the specified parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Type[]
getActualTypeArguments()
Type
getOwnerType()
Type
getRawType()
int
hashCode()
String
toString()
-
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 aParameterizedTypeImpl
with the specified parameters- Parameters:
parameterizedType
-ParameterizedType
to copy details from- Throws:
IllegalArgumentException
-- When
parameterizedType
isnull
- When
parameterizedType
is invalid
- When
- See Also:
ParameterizedTypeImpl(Type, Type, Type...)
-
ParameterizedTypeImpl
public ParameterizedTypeImpl(Type ownerType, Type rawType, Type... actualTypeArguments)
Create aParameterizedTypeImpl
with the specified parameters- Parameters:
ownerType
-Type
that owns this type. In different terms, theType
that this type is nested within. may benull
rawType
-Type
that is being parameterizedactualTypeArguments
-Type
arguments that parameterizerawType
- Throws:
IllegalArgumentException
-- When
rawType
isnull
- When
actualTypeArguments
isnull
- When
actualTypeArguments
contains anull
- When
-
-
Method Detail
-
getActualTypeArguments
public Type[] getActualTypeArguments()
- Specified by:
getActualTypeArguments
in interfaceParameterizedType
-
getRawType
public Type getRawType()
- Specified by:
getRawType
in interfaceParameterizedType
-
getOwnerType
public Type getOwnerType()
- Specified by:
getOwnerType
in interfaceParameterizedType
-
-