|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TypeVariable
Represents a type variable. A type variable may be explicitly declared by a type parameter of a type, method, or constructor. A type variable may also be declared implicitly, as by the capture conversion of a wildcard type argument (see chapter 5 of The Java Language Specification, Third Edition).
TypeParameterElement| Method Summary | |
|---|---|
Element |
asElement()
Returns the element corresponding to this type variable. |
TypeMirror |
getLowerBound()
Returns the lower bound of this type variable. |
TypeMirror |
getUpperBound()
Returns the upper bound of this type variable. |
| Methods inherited from interface javax.lang.model.type.TypeMirror |
|---|
accept, equals, getKind, hashCode, toString |
| Method Detail |
|---|
Element asElement()
TypeMirror getUpperBound()
If this type variable was declared with no explicit
upper bounds, the result is java.lang.Object.
If it was declared with multiple upper bounds,
the result is an intersection type (modeled as a
DeclaredType).
Individual bounds can be found by examining the result's
supertypes.
TypeMirror getLowerBound()
NullType.
|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1993, 2010, Oracle and/or its affiliates. All rights reserved.