Class SystemPropertyUtils
java.lang.Object
com.atlassian.bitbucket.jenkins.internal.util.SystemPropertyUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
parsePositiveLongFromSystemProperty
(String propertyName, long defaultValue)
-
Constructor Details
-
SystemPropertyUtils
public SystemPropertyUtils()
-
-
Method Details
-
parsePositiveLongFromSystemProperty
- 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
-