public class TagSet extends Object implements Serializable
Constructor and Description |
---|
TagSet(Map<String,String> tags)
Creates a new TagSet with the set of tags defined.
|
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
Copyright © 2010–2016. All rights reserved.