Package com.mongodb
Class Tag
- java.lang.Object
-
- com.mongodb.Tag
-
@Immutable public final class Tag extends java.lang.Object
A replica set tag.- Since:
- 2.13
- MongoDB documentation
- Tag Sets
-
-
Constructor Summary
Constructors Constructor Description Tag(java.lang.String name, java.lang.String value)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetName()Gets the name of the replica set tag.java.lang.StringgetValue()Gets the value of the replica set tag.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name of the replica set tag.- Returns:
- the name
-
getValue
public java.lang.String getValue()
Gets the value of the replica set tag.- Returns:
- the value
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-