commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <ja...@carmanconsulting.com>
Subject [all] Generics and Return Type?
Date Wed, 09 Apr 2008 20:24:11 GMT
Does anyone have code that can take care of this situation:

List<String> strings = new ArrayList<String>();

Class returnType = getReturnType(strings.getClass(), "get", int.class);

I want the "returnType" to be java.lang.String.  Does anyone have code
that would return that?  Is it possible?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message