Java Enum List from Class

Posted by DD on Stack Overflow See other posts from Stack Overflow or by DD
Published on 2010-05-17T13:46:14Z Indexed on 2010/05/17 13:50 UTC
Read the original article Hit count: 286

Filed under:
|

How do I go from a Class object to a list of enums generically?

i.e.

public static <T extends Enum> List<T> getList(Class<T> clazz)

I cant find a way to get to the values() method

© Stack Overflow or respective owner

Related posts about java

Related posts about enums