Showing only posts tagged derp. Show all posts.

Live to learn

Just spent a whole hour on a stupid prob­lem:

//... (Storeable is an interface)

          HashMap<String, Class<? extends Storeable>> types = new HashMap<String, Class<? extends Storeable>>();

          //... (object is an instance of a class that implements Storeable)

          types.add(object.getTag(), object.getClass());

          //...

Thought it was a prob­lem with the …