public final class PropertiesUtil extends Object
Properties
.Modifier and Type | Method and Description |
---|---|
static void |
checkAbsentKey(Properties properties,
String key)
Checks whether the specified key is absent in the properties.
|
static void |
checkAbsentKeyPrefix(Properties properties,
String keyPrefix)
Checks whether keys with the specified prefix are absent in the properties.
|
static NavigableMap<String,String> |
createPrefixMap(Map<?,?> properties,
String prefix)
Creates property pairs which has the specified prefix their key.
|
static void |
removeKeyPrefix(Properties properties,
String prefix)
Removes entries which have the specified prefix in their key.
|
public static void removeKeyPrefix(Properties properties, String prefix)
properties
- target propertiesprefix
- target prefixIllegalArgumentException
- if any parameter is null
public static NavigableMap<String,String> createPrefixMap(Map<?,?> properties, String prefix)
properties
- target propertiesprefix
- target prefixIllegalArgumentException
- if any parameter is null
public static void checkAbsentKey(Properties properties, String key)
properties
- target propertieskey
- target keyIllegalArgumentException
- if the key exists in the properties, or any parameter is null
public static void checkAbsentKeyPrefix(Properties properties, String keyPrefix)
properties
- target propertieskeyPrefix
- target key prefixIllegalArgumentException
- if the such key exists in the properties, or any parameter is null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.