Thursday 30 August 2007
Get the generic type of a generic class
Par Vincent DEMAY, Thursday 30 August 2007 :: Java
A simple java line allows to do that :
[java] (Class) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];
Power by