Package com.mongodb

Class TagSet

  • All Implemented Interfaces:
    java.lang.Iterable<Tag>

    @Immutable
    @Deprecated(since="2021-05-27")
    public final class TagSet
    extends java.lang.Object
    implements java.lang.Iterable<Tag>
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    An immutable set of tags, used to select members of a replica set to use for read operations.
    Since:
    2.13
    See Also:
    ReadPreference
    • Constructor Summary

      Constructors 
      Constructor Description
      TagSet()
      Deprecated.
      An empty set of tags.
      TagSet​(Tag tag)
      Deprecated.
      A set of tags contain the single given tag
      TagSet​(java.util.List<Tag> tagList)
      Deprecated.
      A set of tags containing the given list of tags.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean containsAll​(TagSet tagSet)
      Deprecated.
      Returns true if this tag set contains all of the elements of the specified tag set.
      boolean equals​(java.lang.Object o)
      Deprecated.
       
      int hashCode()
      Deprecated.
       
      java.util.Iterator<Tag> iterator()
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • TagSet

        public TagSet()
        Deprecated.
        An empty set of tags.
      • TagSet

        public TagSet​(Tag tag)
        Deprecated.
        A set of tags contain the single given tag
        Parameters:
        tag - the tag
      • TagSet

        public TagSet​(java.util.List<Tag> tagList)
        Deprecated.
        A set of tags containing the given list of tags.
        Parameters:
        tagList - the list of tags
    • Method Detail

      • iterator

        public java.util.Iterator<Tag> iterator()
        Deprecated.
        Specified by:
        iterator in interface java.lang.Iterable<Tag>
      • containsAll

        public boolean containsAll​(TagSet tagSet)
        Deprecated.
        Returns true 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
      • equals

        public boolean equals​(java.lang.Object o)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object