Class Defaults


  • public final class Defaults
    extends Object
    Author:
    Martin Kouba
    • Method Detail

      • getJlsDefaultValue

        public static <T> T getJlsDefaultValue​(Class<T> type)
        See also JLS8, 4.12.5 Initial Values of Variables.
        Parameters:
        type -
        Returns:
        the default value for the given type as defined by JLS