@Immutable public final class TagSet extends Object implements Iterable<Tag>
ReadPreference| Constructor | Description |
|---|---|
TagSet() |
An empty set of tags.
|
TagSet(Tag tag) |
A set of tags contain the single given tag
|
TagSet(List<Tag> tagList) |
A set of tags containing the given list of tags.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
containsAll(TagSet tagSet) |
Returns true if this tag set contains all of the elements of the specified tag set.
|
boolean |
equals(Object o) |
|
int |
hashCode() |
|
Iterator<Tag> |
iterator() |
|
String |
toString() |
forEach, spliteratorpublic TagSet()
public TagSet(Tag tag)
tag - the tagpublic boolean containsAll(TagSet tagSet)
tagSet - tag set to be checked for containment in this tag set