English | Site Directory

Android - An Open Handset Alliance Project

java.lang.reflect
public interface

java.lang.reflect.WildcardType

java.lang.reflect.WildcardType Type

Represents a wildcard type, such as ? or ? extends Comparable.

Summary

Public Methods

        Type[]  getLowerBounds()
Gets the array of types that represent the lower bounds of this type.
        Type[]  getUpperBounds()
Gets the array of types that represent the upper bounds of this type.

Details

Public Methods

public Type[] getLowerBounds()

Gets the array of types that represent the lower bounds of this type. The default lower bound is null, in which case a empty array is returned.

Returns

  • An array of Type instances.

Throws

TypeNotPresentException if the component type points to a missing type.
MalformedParameterizedTypeException if the component type points to a type that can't be instantiated for some reason.

public Type[] getUpperBounds()

Gets the array of types that represent the upper bounds of this type. The default upper bound is Object.

Returns

  • An array of Type instances.

Throws

TypeNotPresentException if the component type points to a missing type.
MalformedParameterizedTypeException if the component type points to a type that can't be instantiated for some reason.
Build m5-rc15g - 14 May 2008 12:50