public class ParameterizedTypeImpl extends Object implements ParameterizedType
ParameterizedTypeImpl is a basic implementation of the ParameterizedType interface. It is used by the dynamic CDI producers that produce generic types.
| Constructor and Description |
|---|
ParameterizedTypeImpl(Class<?> rawType,
Type[] actualTypeArguments)
Constructs an instance of ParameterizedType without an owner type
|
ParameterizedTypeImpl(Type ownerType,
Class<?> rawType,
Type[] actualTypeArguments)
Constructs an instance of ParameterizedType
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Equals method.
|
boolean |
equals(ParameterizedType other)
Tests if an other instance of ParameterizedType is "equal to" this instance.
|
Type[] |
getActualTypeArguments()
Get the actual type arguments.
|
Type |
getOwnerType()
Get the owner type.
|
Type |
getRawType()
Get the raw type.
|
int |
hashCode()
Hash code.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetTypeNamepublic ParameterizedTypeImpl(Class<?> rawType, Type[] actualTypeArguments)
rawType - Type representing the class or interface that declares this type.actualTypeArguments - Array of Types representing the actual type arguments for this typepublic ParameterizedTypeImpl(Type ownerType, Class<?> rawType, Type[] actualTypeArguments)
ownerType - the Type representing the type that this type is embedded in, if any. It can be null.rawType - the Type representing the class or interface that declares this type.actualTypeArguments - Array of Types representing the actual type arguments for this typepublic Type getOwnerType()
getOwnerType in interface ParameterizedTypepublic Type getRawType()
getRawType in interface ParameterizedTypepublic Type[] getActualTypeArguments()
getActualTypeArguments in interface ParameterizedTypepublic boolean equals(Object other)
public boolean equals(ParameterizedType other)
other - the other instance of ParameterizedTypeCopyright © 2010–2022 JBoss by Red Hat. All rights reserved.