Coding in the small with Google Collections: ClassToInstanceMap
Part 14 in a Series. ClassToInstanceMap is a specialized Map whose keys are class literals like PizzaPromotion.class or RestockingInformation.class and whose values are instances of those types. It provides a convenient balance between type safety and model flexibility. In some code I wrote recently, I needed to attach…