FileDocCategorySizeDatePackage
ParameterizedType.javaAPI DocAndroid 1.5 API2740Wed May 06 22:41:04 BST 2009java.lang.reflect

ParameterizedType

public interface ParameterizedType implements Type
This interface represents a parameterized type such as {@code 'Set<String>'}.
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public java.lang.reflect.Type[]getActualTypeArguments()
Returns an array of the actual type arguments for this type.

If this type models a non parameterized type nested within a parameterized type, this method returns a zero length array. The generic type of the following {@code field} declaration is an example for a parameterized type without type arguments.

A<String>.B field;

class A<T> {
class B {
}
}

return
the actual type arguments
throws
TypeNotPresentException if one of the type arguments cannot be found
throws
MalformedParameterizedTypeException if one of the type arguments cannot be instantiated for some reason
since
Android 1.0

public java.lang.reflect.TypegetOwnerType()
Returns the parent / owner type, if this type is an inner type, otherwise {@code null} is returned if this is a top-level type.

return
the owner type or {@code null} if this is a top-level type
throws
TypeNotPresentException if one of the type arguments cannot be found
throws
MalformedParameterizedTypeException if the owner type cannot be instantiated for some reason
since
Android 1.0

public java.lang.reflect.TypegetRawType()
Returns the declaring type of this parameterized type.

The raw type of {@code Set<String> field;} is {@code Set}.

return
the raw type of this parameterized type
since
Android 1.0