Package com.mongodb

Class Tag


  • @Immutable
    public final class Tag
    extends 
    A replica set tag.
    Since:
    2.13
    MongoDB documentation
    • Constructor Summary

      Constructors 
      Constructor Description
       name,  value)
      Construct a new instance.
    • Constructor Detail

      • Tag

        public Tag​( name,
                    value)
        Construct a new instance.
        Parameters:
        name - the tag name
        value - the value of the tag
    • Method Detail

      • getName

        public  getName()
        Gets the name of the replica set tag.
        Returns:
        the name
      • getValue

        public  getValue()
        Gets the value of the replica set tag.
        Returns:
        the value
      • equals

        public boolean equals​( o)
        Overrides:
         in class 
      • hashCode

        public int hashCode()
        Overrides:
         in class 
      • toString

        public  toString()
        Overrides:
         in class