java.lang.reflect
Interface WildcardType

All Superinterfaces:
Type sample code for java.lang.reflect.Type definition code for java.lang.reflect.Type

public interface WildcardType
extends Type sample code for java.lang.reflect.Type definition code for java.lang.reflect.Type

WildcardType represents a wildcard type expression, such as ?, ? extends Number, or ? super Integer.

Since:
1.5

Method Summary
 Type sample code for java.lang.reflect.Type definition code for java.lang.reflect.Type [] getLowerBounds sample code for java.lang.reflect.WildcardType.getLowerBounds() definition code for java.lang.reflect.WildcardType.getLowerBounds() ()
          Returns an array of Type objects representing the lower bound(s) of this type variable.
 Type sample code for java.lang.reflect.Type definition code for java.lang.reflect.Type [] getUpperBounds sample code for java.lang.reflect.WildcardType.getUpperBounds() definition code for java.lang.reflect.WildcardType.getUpperBounds() ()
          Returns an array of Type objects representing the upper bound(s) of this type variable.
 

Method Detail

getUpperBounds sample code for java.lang.reflect.WildcardType.getUpperBounds() definition code for java.lang.reflect.WildcardType.getUpperBounds()

Type sample code for java.lang.reflect.Type definition code for java.lang.reflect.Type [] getUpperBounds()
Returns an array of Type objects representing the upper bound(s) of this type variable. Note that if no upper bound is explicitly declared, the upper bound is Object.

For each upper bound B :

Returns:
an array of Types representing the upper bound(s) of this type variable
Throws:
TypeNotPresentException sample code for java.lang.TypeNotPresentException definition code for java.lang.TypeNotPresentException - if any of the bounds refers to a non-existent type declaration
MalformedParameterizedTypeException sample code for java.lang.reflect.MalformedParameterizedTypeException definition code for java.lang.reflect.MalformedParameterizedTypeException - if any of the bounds refer to a parameterized type that cannot be instantiated for any reason

getLowerBounds sample code for java.lang.reflect.WildcardType.getLowerBounds() definition code for java.lang.reflect.WildcardType.getLowerBounds()

Type sample code for java.lang.reflect.Type definition code for java.lang.reflect.Type [] getLowerBounds()
Returns an array of Type objects representing the lower bound(s) of this type variable. Note that if no lower bound is explicitly declared, the lower bound is the type of null. In this case, a zero length array is returned.

For each lower bound B :

Returns:
an array of Types representing the lower bound(s) of this type variable
Throws:
TypeNotPresentException sample code for java.lang.TypeNotPresentException definition code for java.lang.TypeNotPresentException - if any of the bounds refers to a non-existent type declaration
MalformedParameterizedTypeException sample code for java.lang.reflect.MalformedParameterizedTypeException definition code for java.lang.reflect.MalformedParameterizedTypeException - if any of the bounds refer to a parameterized type that cannot be instantiated for any reason