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

TypeVariable

public interface TypeVariable implements Type
This interface represents a type variables such as {@code 'T'} in {@code 'public interface Comparable<T>'}, the bounded {@code 'T'} in {@code 'public interface A<T extends Number>'} or the multiple bounded {@code 'T'} in {@code 'public interface B<T extends Number & Cloneable>'}.
param
the generic declaration that declares this type variable
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public java.lang.reflect.Type[]getBounds()
Returns the upper bounds of this type variable. {@code Object} is the implicit upper bound if no other bounds are declared.

return
the upper bounds of this type variable
throws
TypeNotPresentException if any of the bounds points to a missing type
throws
MalformedParameterizedTypeException if any of the bounds points to a type that cannot be instantiated for some reason
since
Android 1.0

public DgetGenericDeclaration()
Returns the language construct that declares this type variable.

return
the generic declaration
since
Android 1.0

public java.lang.StringgetName()
Returns the name of this type variable as it is specified in source code.

return
the name of this type variable
since
Android 1.0