GenericDeclaration


GenericDeclaration java.lang.reflect

Java 5.0

This interface is implemented by the classes that represent program elements that can be made generic: java.lang.Class as well as Method and Constructor . It provides access to the type variables declared by the generic type, method, or constructor. getTypeParameters( ) never returns null : if there are no declared type variables, it returns a zero-length array.

 public interface  GenericDeclaration  {  // Public Instance Methods  TypeVariable<?>[ ]  getTypeParameters  ( );   } 

Implementations

Class , Constructor , Method

Returned By

TypeVariable.getGenericDeclaration( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net