public class PropertiesMap
extends java.util.AbstractMap<java.lang.String,java.lang.String>
implements java.io.Serializable
VariableSubstituter class.)Properties,
Serialized Form| Constructor and Description |
|---|
PropertiesMap(java.util.Properties properties)
Construct a map to wrap the specified Properties object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Remove all mappings from this map.
|
boolean |
containsKey(java.lang.Object key)
Determine whether this map contains a mapping for a given key.
|
boolean |
containsValue(java.lang.Object value)
Determine whether this map contains a given value.
|
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> |
entrySet()
Get a set view of the mappings in this map.
|
java.lang.String |
get(java.lang.Object key)
Retrieve an object from the map.
|
boolean |
isEmpty()
Determine whether this map is empty or not.
|
java.util.Set<java.lang.String> |
keySet()
Return a Set view of the keys in the map.
|
java.lang.String |
put(java.lang.String key,
java.lang.String value)
Associates the specified value with the specified key in this map.
|
java.lang.String |
remove(java.lang.Object key)
Removes the mapping for a key, if there is one.
|
int |
size()
Get the number of entries in the map.
|
clone, equals, hashCode, putAll, toString, valuespublic PropertiesMap(java.util.Properties properties)
properties - the Properties objectpublic void clear()
clear in interface java.util.Map<java.lang.String,java.lang.String>clear in class java.util.AbstractMap<java.lang.String,java.lang.String>public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.String,java.lang.String>containsKey in class java.util.AbstractMap<java.lang.String,java.lang.String>key - the key to findpublic boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.String,java.lang.String>containsValue in class java.util.AbstractMap<java.lang.String,java.lang.String>value - the value to findpublic java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> entrySet()
entrySet in interface java.util.Map<java.lang.String,java.lang.String>entrySet in class java.util.AbstractMap<java.lang.String,java.lang.String>java.lang.UnsupportedOperationException - unconditionallypublic java.lang.String get(java.lang.Object key)
get in interface java.util.Map<java.lang.String,java.lang.String>get in class java.util.AbstractMap<java.lang.String,java.lang.String>key - the object's key in the map. Must be a string.java.lang.ClassCastException - if key is not a stringpublic boolean isEmpty()
isEmpty in interface java.util.Map<java.lang.String,java.lang.String>isEmpty in class java.util.AbstractMap<java.lang.String,java.lang.String>public java.util.Set<java.lang.String> keySet()
Return a Set view of the keys in the map. The set is partially backed by the map. Changes to the map are not necessarily reflected in the set, and vice-versa. The set does not support element removal.
keySet in interface java.util.Map<java.lang.String,java.lang.String>keySet in class java.util.AbstractMap<java.lang.String,java.lang.String>public java.lang.String put(java.lang.String key,
java.lang.String value)
put in interface java.util.Map<java.lang.String,java.lang.String>put in class java.util.AbstractMap<java.lang.String,java.lang.String>key - the key with which the specified value is to be associatedvalue - the value to associate with the specified keypublic java.lang.String remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.String,java.lang.String>remove in class java.util.AbstractMap<java.lang.String,java.lang.String>key - the key to removejava.lang.UnsupportedOperationException - unconditionallypublic int size()
size in interface java.util.Map<java.lang.String,java.lang.String>size in class java.util.AbstractMap<java.lang.String,java.lang.String>