public class PropertyUtil extends Object
Constructor and Description |
---|
PropertyUtil() |
Modifier and Type | Method and Description |
---|---|
static Map<Object,Object> |
asFlatMap(Map<Object,Object> properties) |
static Properties |
createProperties(Iterable<Map.Entry<String,String>> defaultProperties) |
static Properties |
createProperties(Map<Object,Object> properties,
Properties defaultProperties) |
static int |
getIntProperty(Map<Object,Object> properties,
String property,
int defaultValue) |
static int |
getIntProperty(Properties defaultProperties,
Map<Object,Object> properties,
String property,
int defaultValue) |
static String |
getProperty(Map<Object,Object> properties,
ConfigDef configDef,
String property) |
static String |
getProperty(Map<Object,Object> properties,
FlowElement flowElement,
String property) |
static String |
getProperty(Map<Object,Object> properties,
String property) |
static <A> A |
getProperty(Map<Object,Object> properties,
String key,
A defaultValue) |
static String |
getStringProperty(Map<Object,Object> properties,
String property) |
static String |
getStringProperty(Properties defaultProperties,
Map<Object,Object> properties,
String property) |
static void |
setProperty(Map<Object,Object> properties,
String key,
String value) |
public PropertyUtil()
public static int getIntProperty(Map<Object,Object> properties, String property, int defaultValue)
public static int getIntProperty(Properties defaultProperties, Map<Object,Object> properties, String property, int defaultValue)
public static String getStringProperty(Map<Object,Object> properties, String property)
public static String getStringProperty(Properties defaultProperties, Map<Object,Object> properties, String property)
public static <A> A getProperty(Map<Object,Object> properties, String key, A defaultValue)
public static String getProperty(Map<Object,Object> properties, FlowElement flowElement, String property)
public static String getProperty(Map<Object,Object> properties, ConfigDef configDef, String property)
public static Properties createProperties(Iterable<Map.Entry<String,String>> defaultProperties)
public static Properties createProperties(Map<Object,Object> properties, Properties defaultProperties)
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.