Originally posted by Gabriel Claramunt:
Not really sure what are you trying to achieve
What I'm actually trying to do is define a generic type that can only be instantiated with one of the wrapper types (Integer, Boolean, Long, Short, etc.) or a
String. As far as I can tell, there is no way to do this without resorting to reflection.