Class SystemPropertyUtils

  • public class SystemPropertyUtils
    extends Object
    • Constructor Detail

      • SystemPropertyUtils

        public SystemPropertyUtils()
    • Method Detail

      • parsePositiveLongFromSystemProperty

        public static long parsePositiveLongFromSystemProperty​(String propertyName,
                                                               long defaultValue)
        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
        the parsed long value of the system property value, or the defaultValue if the system property is undefined or invalid