public class StringProperties extends Object implements Serializable
Constructor and Description |
---|
StringProperties()
Creates new instance.
|
StringProperties(Map<String,String> properties)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all key-value properties.
|
boolean |
containsKey(Object key)
Returns true if this map contains a mapping for the specified
key.
|
boolean |
containsValue(Object value)
Returns true if this map maps one or more keys to the specified
value.
|
Set<Map.Entry<String,String>> |
entrySet()
Returns a
Set view of the mappings contained in this map. |
boolean |
equals(Object obj) |
String |
get(Object key)
Returns the value to which the specified key is mapped, or
null
if this map contains no mapping for the key. |
Map<String,String> |
getMap()
Returns a map view of the key-value properties.
|
int |
hashCode() |
boolean |
isEmpty()
Returns true if this map contains no key-value mappings.
|
Set<String> |
keySet()
Returns a
Set view of the keys contained in this map. |
String |
put(String key,
String value)
Associates the specified value with the specified key in this map.
|
void |
putAll(Map<? extends String,? extends String> m)
Copies all of the mappings from the specified map to this map (optional
operation).
|
String |
remove(Object key)
Removes the mapping for a key from this map if it is present.
|
int |
size()
Returns the number of key-value mappings in this map.
|
Collection<String> |
values()
Returns a
Collection view of the values contained in this map. |
public Map<String,String> getMap()
public void clear()
public boolean containsKey(Object key)
key
- public boolean containsValue(Object value)
value
- public Set<Map.Entry<String,String>> entrySet()
Set
view of the mappings contained in this map.Set
view of the mappings contained in this mappublic String get(Object key)
null
if this map contains no mapping for the key.key
- null
if this map contains no mapping for the key.public boolean isEmpty()
public Set<String> keySet()
Set
view of the keys contained in this map.Set
view of the keys contained in this mappublic String put(String key, String value)
key
- value
- public void putAll(Map<? extends String,? extends String> m)
m
- public String remove(Object key)
key
- public int size()
public Collection<String> values()
Collection
view of the values contained in this map.Collection
view of the values contained in this mapCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.