Commit 53ddcc5f authored by Nico Mack's avatar Nico Mack

Added getBooleanValue method

parent f937a797
......@@ -79,6 +79,17 @@ public class StringUtils {
// ---------------------------------------------------------------------------
public static Boolean getBooleanValue(String valueAsString) {
Boolean value = null;
try {
value = Boolean.parseBoolean(valueAsString);
} catch (NumberFormatException exception) {
LOGGER.error("Failed to convert {} to a boolean value!", valueAsString); //$NON-NLS-1$
}
return value;
}
public static String build(String template, Object... parameters) {
if (template == null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment