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()
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.