Class SystemPropertyUtils


  • public class SystemPropertyUtils
    extends Object
    • Constructor Detail

      • SystemPropertyUtils

        public SystemPropertyUtils()
    • Method Detail

      • parsePositiveLongFromSystemProperty

        public static long parsePositiveLongFromSystemProperty​(String propertyName,
                                                               long defaultValue)
        Parameters:
        propertyName - a JVM system property
        defaultValue - the value to return if the propertyName is not defined or not a valid String representation of a long
        Returns:
        the parsed long value of the system property value, or the defaultValue if the system property is undefined or invalid