Package com.mongodb
Class TagSet
- java.lang.Object
-
- com.mongodb.TagSet
-
@Immutable public final class TagSet extends Object implements Iterable<Tag>
An immutable set of tags, used to select members of a replica set to use for read operations.- Since:
- 2.13
- See Also:
ReadPreference
- MongoDB documentation
- Tag Sets
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsAll(TagSet tagSet)
Returnstrue
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()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
containsAll
public boolean containsAll(TagSet tagSet)
Returnstrue
if this tag set contains all of the elements of the specified tag set.- Parameters:
tagSet
- tag set to be checked for containment in this tag set- Returns:
true
if this tag set contains all of the elements of the specified tag set
-
-