ATS-675/ATS-695 Added PdfRendererApadpter.java

Added dependency to pom.xml
Required transformation of String to Long, method added to Util.java
This commit is contained in:
David Edwards
2020-04-03 11:34:01 +01:00
parent 537070285d
commit ef8879bca3
3 changed files with 99 additions and 0 deletions

View File

@@ -52,4 +52,15 @@ public class Util
{
return param == null ? null : Boolean.parseBoolean(param);
}
/**
* Safely converts a {@link String} to a {@link Long}
*
* @param param String to be converted
* @return Null if param is null or converted value as {@link Boolean}
*/
public static Long stringToLong(final String param)
{
return param == null ? null : Long.parseLong(param);
}
}