Package com.mongodb

Class Tag

java.lang.Object
com.mongodb.Tag

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

    • Tag

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

    • getName

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object