interface IOperation{}
enum Operation implements IOperation{...}
private static <T extends Enum<T> & IOperation> void test(Class<T> opSet){
for (IOperation op : opSet.getEnumConstants()){
System.out.println(op);
}
}
No comments:
Post a Comment