public class TagSet extends Object implements Serializable
| Constructor and Description |
|---|
TagSet()
Creates a new empty TagSet.
|
TagSet(Map<String,String> tags)
Creates a new TagSet with the set of tags defined.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getAllTags()
Get all the tags for this
TagSet |
String |
getTag(String key)
Get the value of the tag with the given key.
|
void |
setTag(String key,
String value)
Sets the value of the tag for a given key.
|
String |
toString() |
public TagSet()
Creates a new empty TagSet.
TagSet(Map)public String getTag(String key)
Get the value of the tag with the given key.
key - The key of the tag to returnpublic void setTag(String key, String value)
Sets the value of the tag for a given key. Will overwrite existing value.
key - The key for the tagvalue - The value for the tagpublic Map<String,String> getAllTags()
Get all the tags for this TagSet