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

WildcardType

public interface WildcardType implements Type
This interface represents a wildcard type, such as the simple wildcard {@code '?'}, the upper bounded wildcard {@code '? extends Closeable'}, the multiple upper bounded wildcard {@code '? extends Closeable & Flushable'} or the lower bounded wildcard {@code '? super OutputStream'}.
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public java.lang.reflect.Type[]getLowerBounds()
Returns the array of types that represent the lower bounds of this type. The default lower bound is {@code null}, in which case an empty array is returned. Since only one lower bound is allowed, the returned array's length will never exceed one.

return
an array containing the lower bounds types
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 java.lang.reflect.Type[]getUpperBounds()
Returns the array of types that represent the upper bounds of this type. The default upper bound is {@code Object}.

return
an array containing the upper bounds types
throws
TypeNotPresentException if any of the bounds points to a missing type
throws
MalformedParameterizedTypeException if any bound points to a type that cannot be instantiated for some reason
since
Android 1.0