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