Team LiB
Previous Section Next Section

WildcardTypejava.lang.reflect

Java 5.0

This interface extends Type and represents a generic type declared with a bounded or unbounded wildcard. getUpperBounds( ) returns the upper bounds of the wildcard. The returned array always includes at least one element. If no upper bound is declared, Object.class is the implicit upper bound. getLowerBounds( ) returns the lower bounds of the wildcard. If no lower bound is declared, this method returns an empty array .

Figure 10-104. java.lang.reflect.WildcardType


public interface WildcardType extends Type {
// Public Instance Methods
     Type[ ] getLowerBounds( );  
     Type[ ] getUpperBounds( );  
}

    Team LiB
    Previous Section Next Section