public interface WildcardType extends TypeMirror
? ? extends Number ? super T
通配符可以由extends
子句显式设置其上限,其下限由super
子句显式设置,或者既不(也不是两者)。
Modifier and Type | Method and Description |
---|---|
TypeMirror
|
getExtendsBound()
返回此通配符的上限。
|
TypeMirror
|
getSuperBound()
返回此通配符的下限。
|
accept,
equals,
getKind,
hashCode,
toString
getAnnotation,
getAnnotationMirrors,
getAnnotationsByType
TypeMirror getExtendsBound()
null
。
TypeMirror getSuperBound()
null
则返回null
。