Android
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.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48