public class PropertiesUtils extends Object
Modifier | Constructor and Description |
---|---|
protected |
PropertiesUtils() |
Modifier and Type | Method and Description |
---|---|
static String[] |
split(String multiValueProp)
Split the given string by comma or semicolon.
|
static boolean |
toBoolean(String value) |
static List<SupportedBrowser> |
toSupportedBrowsers(String[] browserNames)
Convert an array of names of browsers, to a List of
SupportedBrowser s. |
static URL |
toURL(String url) |
public static String[] split(String multiValueProp)
Examples:
multiValueProp
- a comma/semicolon-separated stringString.split(String)
public static URL toURL(String url)
url
- URL
ConfigException
- if MalformedURLException
is raisedpublic static boolean toBoolean(String value)
ConfigException
- if value is an empty stringpublic static List<SupportedBrowser> toSupportedBrowsers(String[] browserNames)
SupportedBrowser
s.Copyright © 2015. All rights reserved.