org.constretto.internal
Class ConstrettoUtils
java.lang.Object
org.constretto.internal.ConstrettoUtils
public class ConstrettoUtils
- extends java.lang.Object
- Author:
- Kaare Nilsen
|
Method Summary |
static java.lang.String |
asCsv(java.lang.String[] arr)
|
static java.util.List<java.lang.String> |
fromCSV(java.lang.String csv)
|
static boolean |
isEmpty(java.lang.String string)
|
static void |
mergePropertiesIntoMap(java.util.Properties props,
java.util.Map map)
Merge the given Properties instance into the given Map,
copying all properties (key-value pairs) over. |
static java.lang.String |
substringAfter(java.lang.String str,
java.lang.String separator)
|
static java.lang.String |
substringBetween(java.lang.String str,
java.lang.String open,
java.lang.String close)
|
static java.util.Locale |
toLocale(java.lang.String str)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstrettoUtils
public ConstrettoUtils()
asCsv
public static java.lang.String asCsv(java.lang.String[] arr)
fromCSV
public static java.util.List<java.lang.String> fromCSV(java.lang.String csv)
isEmpty
public static boolean isEmpty(java.lang.String string)
substringBetween
public static java.lang.String substringBetween(java.lang.String str,
java.lang.String open,
java.lang.String close)
substringAfter
public static java.lang.String substringAfter(java.lang.String str,
java.lang.String separator)
toLocale
public static java.util.Locale toLocale(java.lang.String str)
mergePropertiesIntoMap
public static void mergePropertiesIntoMap(java.util.Properties props,
java.util.Map map)
- Merge the given Properties instance into the given Map,
copying all properties (key-value pairs) over.
Uses Properties.propertyNames() to even catch
default properties linked into the original Properties instance.
- Parameters:
props - the Properties instance to merge (may be null)map - the target Map to merge the properties into
Copyright © 2008-2011. All Rights Reserved.