public class TagSet
extends java.lang.Object
| コンストラクタと説明 |
|---|
TagSet()
Creates a new empty TagSet.
|
TagSet(java.util.Map<java.lang.String,java.lang.String> tags)
Creates a new TagSet with the set of tags defined.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getAllTags()
Get all the tags for this
TagSet
|
java.lang.String |
getTag(java.lang.String key)
Get the value of the tag with the given key.
|
void |
setTag(java.lang.String key,
java.lang.String value)
Sets the value of the tag for a given key.
|
java.lang.String |
toString() |
public TagSet()
Creates a new empty TagSet.
TagSet(Map)public TagSet(java.util.Map<java.lang.String,java.lang.String> tags)
Creates a new TagSet with the set of tags defined.
tags - A key/value mapping of tags to store in this TagSetpublic java.lang.String getTag(java.lang.String key)
Get the value of the tag with the given key.
key - The key of the tag to returnpublic void setTag(java.lang.String key,
java.lang.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 java.util.Map<java.lang.String,java.lang.String> getAllTags()
Get all the tags for this TagSet
public java.lang.String toString()
toString クラス内 java.lang.Object