Class SystemPropertyUtils

java.lang.Object
com.atlassian.bitbucket.jenkins.internal.util.SystemPropertyUtils

public class SystemPropertyUtils extends Object
  • Constructor Details

    • SystemPropertyUtils

      public SystemPropertyUtils()
  • Method Details

    • 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