I am puzzled by generic开发者_StackOverflow社区s. You can declare a field like: Class<Collection<String>> clazz = ...