Package org.jenkinsci.plugins.xunit
Class XUnitUtil
java.lang.Object
org.jenkinsci.plugins.xunit.XUnitUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
parsePositiveLong
(String value, long defaultValue) Parses the string argument as a signed decimallong
.
-
Method Details
-
parsePositiveLong
Parses the string argument as a signed decimallong
. In case the given value is empty or null, the default value is returned.- Parameters:
value
- to parsedefaultValue
- in case argument is not valid or empty or null- Returns:
- the
long
represented by the argument in decimal, otherwise default value if argument is null, empty or invalid.
-