java.lang.reflect
Interface ClassTypeVariable
- All Superinterfaces:
- Type, TypeVariable
- public interface ClassTypeVariable
- extends TypeVariable
The ClassTypeVariable
interface represents a type variable
declared as a formal parameter to a generic class or interface.
Example: A
in Collection<A>
.
Note that implementations of this interface are free to return
distinct objects for the same type variable; the identity of
objects implementing this interface may not be used to test for identity
among the type variables they represent.
Method Summary |
Class |
getDeclaringClass()
Returns a Class object representing the class
or interface that declared the type variable represented by this
object. |
getDeclaringClass
public Class getDeclaringClass()
- Returns a
Class
object representing the class
or interface that declared the type variable represented by this
object.
- Returns:
- The class or interface that declared the type variable