public interface Tagged
Modifier and Type | Method and Description |
---|---|
String |
get(String key)
Replies the value of the given key; null, if there is no value for this key
|
Map<String,String> |
getKeys()
Replies the map of key/value pairs.
|
boolean |
hasKeys()
Replies true, if there is at least one key/value pair; false, otherwise
|
Collection<String> |
keySet()
Replies the set of keys
|
void |
put(String key,
String value)
Sets a key/value pairs
|
void |
remove(String key)
Removes a given key/value pair
|
void |
removeAll()
Removes all tags
|
void |
setKeys(Map<String,String> keys)
Sets the map of key/value pairs
|
void setKeys(Map<String,String> keys)
keys
- the map of key value pairs. If null, reset to the empty map.Map<String,String> getKeys()
void put(String key, String value)
key
- the keyvalue
- the value. If null, removes the key/value pair.String get(String key)
key
- the keyboolean hasKeys()
Collection<String> keySet()
void removeAll()