Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 567
  • Last Modified:

How to retrieve the parameterized type of a Collection object?

For example:

List<Integer> abc = new ArrayList<Integer>();

What java reflection API(s) for retrieving the parameterized type of the above collection object? (i.e. Integer).
0
zollen
Asked:
zollen
1 Solution
 
Gurvinder Pal SinghCommented:
0
 
a_bCommented:
Have a look the code posted by this person - http://blog.demay-fr.net/index.php/2007/08/30/77-get-the-genereric-type-of-a-generic-class

Look at the end of the page.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now