Get the generic type of a generic class
By Vincent DEMAY, Thursday 30 August 2007 :: Java :: #77 :: rss
A simple java line allows to do that :
[java] (Class) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];
Power by
Comments
1. Le Saturday 12 April 2008 , par antonio
2. Le Friday 9 May 2008 , par G M S, Girish M S
3. Le Sunday 11 May 2008 , par Paul
4. Le Monday 3 November 2008 , par Mansour
5. Le Monday 3 November 2008 , par Vincent DEMAY
6. Le Sunday 13 September 2009 , par Keith Bennett
Add a comment