@Immutable public final class TagSet extends java.lang.Object implements java.lang.Iterable<Tag>
ReadPreference| Constructor and Description |
|---|
TagSet()
An empty set of tags.
|
TagSet(java.util.List<Tag> tagList)
A set of tags containing the given list of tags.
|
TagSet(Tag tag)
A set of tags contain the single given tag
|
public TagSet()
public TagSet(Tag tag)
tag - the tagpublic TagSet(java.util.List<Tag> tagList)
tagList - the list of tagspublic java.util.Iterator<Tag> iterator()
iterator in interface java.lang.Iterable<Tag>public boolean containsAll(TagSet tagSet)
tagSet - tag set to be checked for containment in this tag setpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object