net.sf.japaki.basic
Class ClassCast

java.lang.Object
  extended by net.sf.japaki.basic.ClassCast

public class ClassCast
extends Object

Fixes the problem that generic class literals do not exist.


Method Summary
static
<T> Class<T>
cast(Class<? super T> clazz)
          Casts a class to a generic class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cast

public static <T> Class<T> cast(Class<? super T> clazz)
Casts a class to a generic class

Parameters:
clazz - a class
Returns:
the input class