Package com.sun.faces.cdi
Class ParameterizedTypeImpl
- java.lang.Object
-
- com.sun.faces.cdi.ParameterizedTypeImpl
-
- All Implemented Interfaces:
ParameterizedType
,Type
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.
- Since:
- 2.3
-
-
Constructor Summary
Constructors Constructor Description ParameterizedTypeImpl(Class<?> rawType, Type[] actualTypeArguments)
Constructs an instance of ParameterizedType without an owner typeParameterizedTypeImpl(Type ownerType, Class<?> rawType, Type[] actualTypeArguments)
Constructs an instance of ParameterizedType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.reflect.Type
getTypeName
-
-
-
-
Constructor Detail
-
ParameterizedTypeImpl
public ParameterizedTypeImpl(Class<?> rawType, Type[] actualTypeArguments)
Constructs an instance of ParameterizedType without an owner type- Parameters:
rawType
- Type representing the class or interface that declares this type.actualTypeArguments
- Array of Types representing the actual type arguments for this type
-
ParameterizedTypeImpl
public ParameterizedTypeImpl(Type ownerType, Class<?> rawType, Type[] actualTypeArguments)
Constructs an instance of ParameterizedType- Parameters:
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 type
-
-
Method Detail
-
getOwnerType
public Type getOwnerType()
Get the owner type.- Specified by:
getOwnerType
in interfaceParameterizedType
- Returns:
- the owner type.
-
getRawType
public Type getRawType()
Get the raw type.- Specified by:
getRawType
in interfaceParameterizedType
- Returns:
- the raw type.
-
getActualTypeArguments
public Type[] getActualTypeArguments()
Get the actual type arguments.- Specified by:
getActualTypeArguments
in interfaceParameterizedType
- Returns:
- the actual type arguments.
-
equals
public boolean equals(Object other)
Equals method.
-
equals
public boolean equals(ParameterizedType other)
Tests if an other instance of ParameterizedType is "equal to" this instance.- Parameters:
other
- the other instance of ParameterizedType- Returns:
- true if instances equal, false otherwise.
-
-