public final class PropertiesUtil extends Object
Properties.| Modifier and Type | Method and Description |
|---|---|
static NavigableMap<String,String> |
createPrefixMap(Map<?,?> properties,
String prefix)
Creates property pairs which has the specified prefix their key.
|
static Set<String> |
getChildKeys(Map<?,?> properties,
String parentPrefix,
String delimitier)
Collect the
child keys from the properties. |
public static Set<String> getChildKeys(Map<?,?> properties, String parentPrefix, String delimitier)
child keys from the properties.
If the parent prefix is "parent." and delimiter is ".",
then the child keys are in form of "parent.<child-name>".properties - target propertiesparentPrefix - parent key prefix (may end with delimiter)delimitier - a generation delimiter token (ordinally, ".")IllegalArgumentException - if some parameters were nullpublic static NavigableMap<String,String> createPrefixMap(Map<?,?> properties, String prefix)
properties - target propertiesprefix - target prefixIllegalArgumentException - if any parameter is nullCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.