Class SystemPropertyUtils
- java.lang.Object
-
- com.atlassian.bitbucket.jenkins.internal.util.SystemPropertyUtils
-
public class SystemPropertyUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description SystemPropertyUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
parsePositiveLongFromSystemProperty(String propertyName, long defaultValue)
-
-
-
Method Detail
-
parsePositiveLongFromSystemProperty
public static long parsePositiveLongFromSystemProperty(String propertyName, long defaultValue)
- Parameters:
propertyName
- a JVM system propertydefaultValue
- 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
-
-