Build 1.0_r1(from source)

java.lang.reflect
Interface WildcardType

All Superinterfaces:
Type

public interface WildcardType
extends Type

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

Since:
1.5

Method Summary
 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.
 

Method Detail

getUpperBounds

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.

getLowerBounds

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.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature