public interface TypeVariable extends ReferenceType
TypeParameterElement
Modifier and Type | Method and Description |
---|---|
Element |
asElement()
返回对应于此类型变量的元素。
|
TypeMirror |
getLowerBound()
返回此类型变量的下限。
|
TypeMirror |
getUpperBound()
返回此类型变量的上限。
|
accept, equals, getKind, hashCode, toString
getAnnotation, getAnnotationMirrors, getAnnotationsByType
Element asElement()
TypeMirror getUpperBound()
如果这种类型的变量是没有明确的上限申报,结果是java.lang.Object
。如果是用多个上界说,结果是一个intersection type;个体的界限可以通过检验结果的bounds发现。
TypeMirror getLowerBound()
NullType
。
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.