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
。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.