Class XUnitUtil

java.lang.Object
org.jenkinsci.plugins.xunit.XUnitUtil

public final class XUnitUtil extends Object
  • Method Details

    • parsePositiveLong

      public static long parsePositiveLong(String value, long defaultValue)
      Parses the string argument as a signed decimal long. In case the given value is empty or null, the default value is returned.
      Parameters:
      value - to parse
      defaultValue - 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.