Mega Code Archive

 
Categories / Java Book / 008 Reflection
 

0410 Cast to sub class

<U> Class<? extends U> asSubclass(Class<U> clazz) Casts this Class object to represent a subclass of the class represented by the specified class object.