rabbit.util
Class SProperties
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,String>
rabbit.util.SProperties
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,String>
public class SProperties
- extends HashMap<String,String>
A simple string properties class.
- See Also:
- Serialized Form
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
SProperties
public SProperties()
getProperty
public String getProperty(String key)
- Get the property for a given key
- Parameters:
key
- the property to get
- Returns:
- the property or null if the key does not exists in
this properties.
getProperty
public String getProperty(String key,
String defaultValue)
- Get the property for a given key
- Parameters:
key
- the property to getdefaultValue
- the value to use if the key was not found
or if the value was null.
- Returns:
- the property value