public final class PropertyUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
extractAndLogProperty(String name,
Map properties) |
static String |
extractAndLogProperty(String name,
Properties properties) |
static boolean |
parseBoolean(String value)
Null safe, parser of boolean from a String
|
static Properties |
parseProperties(String propertiesString,
String propertySeparator)
Parse properties supplied as a comma separated list into a
Properties object |
public static String extractAndLogProperty(String name, Properties properties)
public static String extractAndLogProperty(String name, Map properties)
public static Properties parseProperties(String propertiesString, String propertySeparator)
Properties objectpropertiesString - a comma separated list such as "propertyA=s, propertyB=t"public static boolean parseBoolean(String value)
value - Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.