Top Description Fields Constructors Methods
com.sun.faces.cdi

public Class ParameterizedTypeImpl

extends Object
implements ParameterizedType
Class Inheritance
All Implemented Interfaces
java.lang.reflect.ParameterizedType, java.lang.reflect.Type
Imports
java.lang.reflect.ParameterizedType, .Type, java.util.Arrays, .Objects

ParameterizedTypeImpl is a basic implementation of the ParameterizedType interface. It is used by the dynamic CDI producers that produce generic types.

Since
2.3

Field Summary

Modifier and TypeField and Description
private final Type[]
actualTypeArguments

Stores the actual type arguments.

private final Type
ownerType

Stores the owner type.

private final Class<?>
rawType

Stores the raw type.

Constructor Summary

AccessConstructor and Description
public
ParameterizedTypeImpl(Class<?>
Type representing the class or interface that declares this type.
rawType
,
Type[]
Array of Types representing the actual type arguments for this type
actualTypeArguments
)

Constructs an instance of ParameterizedType without an owner type

public
ParameterizedTypeImpl(Type
the Type representing the type that this type is embedded in, if any. It can be null.
ownerType
,
Class<?>
the Type representing the class or interface that declares this type.
rawType
,
Type[]
Array of Types representing the actual type arguments for this type
actualTypeArguments
)

Constructs an instance of ParameterizedType

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if it is equals, false otherwise.
equals
(Object
the object to compare against.
other
)

Overrides java.lang.Object.equals.

Equals method.
public boolean

Returns:

true if instances equal, false otherwise.
equals
(ParameterizedType
the other instance of ParameterizedType
other
)

Tests if an other instance of ParameterizedType is "equal to" this instance.

public Type[]

Returns:

the actual type arguments.
getActualTypeArguments
()

Implements java.lang.reflect.ParameterizedType.getActualTypeArguments.

Get the actual type arguments.
public Type

Returns:

the owner type.
getOwnerType
()

Implements java.lang.reflect.ParameterizedType.getOwnerType.

Get the owner type.
public Type

Returns:

the raw type.
getRawType
()

Implements java.lang.reflect.ParameterizedType.getRawType.

Get the raw type.
public int

Returns:

the hash code.
hashCode
()

Overrides java.lang.Object.hashCode.

Hash code.
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

actualTypeArgumentsback to summary
private final Type[] actualTypeArguments

Stores the actual type arguments.

ownerTypeback to summary
private final Type ownerType

Stores the owner type.

rawTypeback to summary
private final Class<?> rawType

Stores the raw type.

Constructor Detail

ParameterizedTypeImplback to summary
public ParameterizedTypeImpl(Class<?> rawType, Type[] actualTypeArguments)

Constructs an instance of ParameterizedType without an owner type

Parameters
rawType:Class<?>

Type representing the class or interface that declares this type.

actualTypeArguments:Type[]

Array of Types representing the actual type arguments for this type

ParameterizedTypeImplback to summary
public ParameterizedTypeImpl(Type ownerType, Class<?> rawType, Type[] actualTypeArguments)

Constructs an instance of ParameterizedType

Parameters
ownerType:Type

the Type representing the type that this type is embedded in, if any. It can be null.

rawType:Class<?>

the Type representing the class or interface that declares this type.

actualTypeArguments:Type[]

Array of Types representing the actual type arguments for this type

Method Detail

equalsback to summary
public boolean equals(Object other)

Overrides java.lang.Object.equals.

Equals method.

Parameters
other:Object

the object to compare against.

Returns:boolean

true if it is equals, false otherwise.

Annotations
@Override
equalsback to summary
public boolean equals(ParameterizedType other)

Tests if an other instance of ParameterizedType is "equal to" this instance.

Parameters
other:ParameterizedType

the other instance of ParameterizedType

Returns:boolean

true if instances equal, false otherwise.

getActualTypeArgumentsback to summary
public Type[] getActualTypeArguments()

Implements java.lang.reflect.ParameterizedType.getActualTypeArguments.

Get the actual type arguments.

Returns:Type[]

the actual type arguments.

Annotations
@Override
getOwnerTypeback to summary
public Type getOwnerType()

Implements java.lang.reflect.ParameterizedType.getOwnerType.

Get the owner type.

Returns:Type

the owner type.

Annotations
@Override
getRawTypeback to summary
public Type getRawType()

Implements java.lang.reflect.ParameterizedType.getRawType.

Get the raw type.

Returns:Type

the raw type.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Hash code.

Returns:int

the hash code.

Annotations
@Override