Class GenericsTest


  • public class GenericsTest
    extends Object
    • Field Detail

      • logger

        private static final org.slf4j.Logger logger
    • Constructor Detail

      • GenericsTest

        public GenericsTest()
    • Method Detail

      • testRawCollection

        public void testRawCollection()
        Raw exceptions expose runtime to ClassCastExceptions
      • testTypedCollection

        public void testTypedCollection()
        Typed collections check at compile time
      • testCheckedCollection

        public void testCheckedCollection()
        Checked collections check at runtime.