org.specrunner.configuration.core
Class ConfigurationImpl
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.specrunner.configuration.core.ConfigurationImpl
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,Object>, IConfiguration
public class ConfigurationImpl
- extends HashMap<String,Object>
- implements IConfiguration
Default implementation.
- Author:
- Thiago Santos
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
ConfigurationImpl
public ConfigurationImpl()
add
public IConfiguration add(String feature,
Object value)
- Description copied from interface:
IConfiguration
- Add a feature to the configuration.
- Specified by:
add in interface IConfiguration
- Parameters:
feature - The feature name.value - The feature value.
- Returns:
- The configuration itself.
get
public Object get(String feature,
Object defaultValue)
- Description copied from interface:
IConfiguration
- Get a value from map, if not found, result is 'defaultValue'.
- Specified by:
get in interface IConfiguration
- Parameters:
feature - A name.defaultValue - The default value.
- Returns:
- The key value, or defaultValue, if not found.
Copyright © 2014. All rights reserved.