March 2005
Beginner to intermediate
1254 pages
104h 21m
English
WildcardType
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( ); }
Read now
Unlock full access