public class ConstrettoUtils extends Object
| Constructor and Description |
|---|
ConstrettoUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
asCsv(String[] arr) |
static List<String> |
fromCSV(String csv) |
static boolean |
isEmpty(String string) |
static void |
mergePropertiesIntoMap(Properties props,
Map map)
Merge the given Properties instance into the given Map,
copying all properties (key-value pairs) over.
|
static String |
substringAfter(String str,
String separator) |
static String |
substringBetween(String str,
String open,
String close) |
static Locale |
toLocale(String str) |
public static boolean isEmpty(String string)
public static void mergePropertiesIntoMap(Properties props, Map map)
Uses Properties.propertyNames() to even catch
default properties linked into the original Properties instance.
props - the Properties instance to merge (may be null)map - the target Map to merge the properties intoCopyright © 2008–2017. All rights reserved.