@Immutable public final class Tag extends java.lang.Object
Constructor and Description |
---|
Tag(java.lang.String name,
java.lang.String value)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName()
Gets the name of the replica set tag.
|
java.lang.String |
getValue()
Gets the value of the replica set tag.
|
int |
hashCode() |
java.lang.String |
toString() |
public Tag(java.lang.String name, java.lang.String value)
name
- the tag namevalue
- the value of the tagpublic java.lang.String getName()
public java.lang.String getValue()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object