public final class Tags
extends java.lang.Object
| Constructor and Description |
|---|
Tags(java.lang.String name)
Creates a new single tag recognized by the given name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String name)
Adds a new single tag recognized by the given name to this tag collection.
|
void |
add(Tags tag)
Adds a single tag or a collection of tags to this tag collection.
|
boolean |
contains(Tags tag)
Returns true if this tag set contains all of the elements of the specified tag set.
|
java.lang.String |
getName()
Returns name of single tag or a comma separated list of
names of all tags in the collection.
|
java.lang.String |
toString()
String representation of this tag collection.
|
public Tags(java.lang.String name)
public void add(java.lang.String name)
public void add(Tags tag)
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean contains(Tags tag)