public class PropertyUtil extends java.lang.Object
Constructor and Description |
---|
PropertyUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.Object,java.lang.Object> |
asFlatMap(java.util.Map<java.lang.Object,java.lang.Object> properties) |
static java.util.Properties |
createProperties(java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>> defaultProperties) |
static java.util.Properties |
createProperties(java.util.Map<java.lang.Object,java.lang.Object> properties,
java.util.Properties defaultProperties) |
static boolean |
getBooleanProperty(java.util.Map<java.lang.Object,java.lang.Object> properties,
java.lang.String property,
boolean defaultValue) |
static boolean |
getBooleanProperty(java.util.Properties defaultProperties,
java.util.Map<java.lang.Object,java.lang.Object> properties,
java.lang.String property,
boolean defaultValue) |
static int |
getIntProperty(java.util.Map<java.lang.Object,java.lang.Object> properties,
java.lang.String property,
int defaultValue) |
static int |
getIntProperty(java.util.Properties defaultProperties,
java.util.Map<java.lang.Object,java.lang.Object> properties,
java.lang.String property,
int defaultValue) |
static java.lang.String |
getProperty(java.util.Map<java.lang.Object,java.lang.Object> properties,
ConfigDef configDef,
java.lang.String property) |
static java.lang.String |
getProperty(java.util.Map<java.lang.Object,java.lang.Object> properties,
ScopedElement flowElement,
java.lang.String property) |
static java.lang.String |
getProperty(java.util.Map<java.lang.Object,java.lang.Object> properties,
java.lang.String property) |
static <A> A |
getProperty(java.util.Map<java.lang.Object,java.lang.Object> properties,
java.lang.String key,
A defaultValue) |
static java.lang.String |
getStringProperty(java.util.Map<java.lang.Object,java.lang.Object> properties,
java.lang.String property) |
static java.lang.String |
getStringProperty(java.util.Properties defaultProperties,
java.util.Map<java.lang.Object,java.lang.Object> properties,
java.lang.String property) |
static java.util.Properties |
merge(java.util.Properties... properties)
Merge all properties instances into one.
|
static java.util.Properties |
remove(java.util.Properties properties,
java.util.Properties... remove) |
static java.util.Properties |
remove(java.util.Properties properties,
java.util.Set<java.lang.String> keys) |
static java.util.Properties |
retain(java.util.Properties properties,
java.util.Properties... retain) |
static java.util.Properties |
retain(java.util.Properties properties,
java.util.Set<java.lang.String> keys) |
static void |
setProperty(java.util.Map<java.lang.Object,java.lang.Object> properties,
java.lang.String key,
java.lang.String value) |
public PropertyUtil()
public static java.lang.String getProperty(java.util.Map<java.lang.Object,java.lang.Object> properties, java.lang.String property)
public static boolean getBooleanProperty(java.util.Map<java.lang.Object,java.lang.Object> properties, java.lang.String property, boolean defaultValue)
public static boolean getBooleanProperty(java.util.Properties defaultProperties, java.util.Map<java.lang.Object,java.lang.Object> properties, java.lang.String property, boolean defaultValue)
public static int getIntProperty(java.util.Map<java.lang.Object,java.lang.Object> properties, java.lang.String property, int defaultValue)
public static int getIntProperty(java.util.Properties defaultProperties, java.util.Map<java.lang.Object,java.lang.Object> properties, java.lang.String property, int defaultValue)
public static java.lang.String getStringProperty(java.util.Map<java.lang.Object,java.lang.Object> properties, java.lang.String property)
public static java.lang.String getStringProperty(java.util.Properties defaultProperties, java.util.Map<java.lang.Object,java.lang.Object> properties, java.lang.String property)
public static <A> A getProperty(java.util.Map<java.lang.Object,java.lang.Object> properties, java.lang.String key, A defaultValue)
public static java.lang.String getProperty(java.util.Map<java.lang.Object,java.lang.Object> properties, ScopedElement flowElement, java.lang.String property)
public static java.lang.String getProperty(java.util.Map<java.lang.Object,java.lang.Object> properties, ConfigDef configDef, java.lang.String property)
public static void setProperty(java.util.Map<java.lang.Object,java.lang.Object> properties, java.lang.String key, java.lang.String value)
public static java.util.Properties createProperties(java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>> defaultProperties)
public static java.util.Properties createProperties(java.util.Map<java.lang.Object,java.lang.Object> properties, java.util.Properties defaultProperties)
public static java.util.Map<java.lang.Object,java.lang.Object> asFlatMap(java.util.Map<java.lang.Object,java.lang.Object> properties)
public static java.util.Properties merge(java.util.Properties... properties)
Always returns a new Properties instance.
Subsequent values to not overwrite earlier values, that is, the left most instances have more precedence, that is, won't be replaced.
properties
- public static java.util.Properties remove(java.util.Properties properties, java.util.Properties... remove)
public static java.util.Properties remove(java.util.Properties properties, java.util.Set<java.lang.String> keys)
public static java.util.Properties retain(java.util.Properties properties, java.util.Properties... retain)
public static java.util.Properties retain(java.util.Properties properties, java.util.Set<java.lang.String> keys)
Copyright © 2007-2017 Cascading Maintainers. All Rights Reserved.