| public interface java.lang.reflect TypeVariable<D>
|
Java SE 6 |
Multiple objects may be instantiated at run-time to represent a given type variable. Even though a type variable is created only once, this does not imply any requirement to cache instances representing the type variable. However, all instances representing a type variable must be equal() to each other. As a consequence, users of type variables must not rely on the identity of instances of classes implementing this interface.
| D | the type of generic declaration that declared the underlying type variable. |
| since | 1.5 |
| Properties | |||||||
|---|---|---|---|---|---|---|---|
| public Type[] | getBounds() Details
Returns an array of Type objects representing the
upper bound(s) of this type variable. Note that if no upper bound is
explicitly declared, the upper bound is Object.
For each upper bound B:
| ||||||
| public GenericDeclaration | getGenericDeclaration() Details
Returns the GenericDeclaration object representing the
generic declaration declared this type variable.
| ||||||
| public String | getName() Details
Returns the name of this type variable, as it occurs in the source code.
| ||||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2009 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|