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