public final class PropUtil extends Object
Constructor and Description |
---|
PropUtil() |
Modifier and Type | Method and Description |
---|---|
static Properties |
getProperties(List<String> propList)
Convert from a
List of properties stored as name:value pairs to
a Properties . |
static Properties |
getProperties(List<String> propList,
char separator)
Convert from a
List of properties stored as name:value pairs to
a Properties . |
static Properties |
getProperties(String inputString)
Convert from a comma delimited list of name-value pairs separated by a ':'.
|
static Properties |
getProperties(String inputString,
char separator)
Convert from a comma delimited list of name-value pairs separated by a ':'.
|
static Properties |
getProperties(String inputString,
char separator,
String delimiter)
Convert from a comma delimited list of name-value pairs separated by a ':'.
|
static boolean |
isNotEmpty(Properties props)
Method will return true if props is not null or empty.
|
public static Properties getProperties(List<String> propList)
List
of properties stored as name:value pairs to
a Properties
.propList
- contains a list of name-value pairs separated by a ':'.public static Properties getProperties(List<String> propList, char separator)
List
of properties stored as name:value pairs to
a Properties
.propList
- contains a list of name-value pairs separated by a ':'.separator
- contains char to be used to separate key and value.public static Properties getProperties(String inputString)
Properties
.inputString
- contains comma delimited list of properties.public static Properties getProperties(String inputString, char separator)
Properties
.inputString
- contains comma delimited list of properties.separator
- contains char to be used to separate key and value.public static Properties getProperties(String inputString, char separator, String delimiter)
Properties
.inputString
- contains comma delimited list of properties.separator
- contains char to be used to separate key and value.delimiter
- contains a single char specifying delimiter between properties.public static boolean isNotEmpty(Properties props)
props
- contains the reference to props.Copyright © 2003-2016, The Apache Software Foundation. All Rights Reserved. Generated 20160718-1621