public interface MetaWildcardType extends MetaType
?
, ? extends List
or
? super MyType
.Modifier and Type | Method and Description |
---|---|
MetaType[] |
getLowerBounds()
Returns the lower bounds of this wildcard type.
|
String |
getName()
Returns the Java source code representation of this wildcard, for example
"? extends java.util.Collection" or "? super org.xyz.Foo".
|
MetaType[] |
getUpperBounds()
Returns the upper bounds of this wildcard type.
|
String |
toString()
Equivalent to
getName() . |
String getName()
MetaType[] getLowerBounds()
<?>
has no lower bounds
<? extends List>
has no lower bounds
<? super List>
has a lower bound of {List}
<? super List & Futzable>
has a lower bound of
{List, Futzable}
MetaType[] getUpperBounds()
<?>
has an upper bound of java.lang.Object
<? extends List>
has an upper bound of {List}
<? super List>
has an upper bound of java.lang.Object
<? extends List & Futzable>
upper bounds of {List, Futzable}
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.