Understanding Class<?>
android, generics, java
Solution
`Class<?>` refers to a class of unknown type. The notation uses an unbounded generic which places no restriction on the type of class that can be added to the Collection. For example the following would not work
Set<Class<String>> set = new HashSet<Class<String>>();
set.add(Adages.class); // type not allowed
Problem
I came across this code: ``` public class RestfulAdage extends Application { @Override public Set<Class<?>> getClasses() { Set<Class<?>> set = new HashSet<Class<?>>(); set.add(Adages.class); return set; } } ``` I do not understand what `Class<?>` means.