DiamondOperator in Java 7 Concept The diamond operator is just a shorthand that lets the compiler infer the generic type from context, saving you from repeating yourself. Example See DiamondOperator.java