public class Tag
extends java.lang.Object
TagName
: (Required) The name of the tag. Must match the regex [a-zA-Z_][a-zA-Z0-9_]*.
TagValue
: (Required) The value of the tag.
Constructor and Description |
---|
Tag(java.lang.String tagName,
java.lang.String tagValue)
Constructs the Tag object with the given tag name and tag value
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getTagName() |
java.lang.String |
getTagValue() |
int |
hashCode() |
java.lang.String |
toString() |
public Tag(java.lang.String tagName, java.lang.String tagValue) throws java.lang.IllegalArgumentException
tagName
- The tag name, must match the regex [a-zA-Z_][a-zA-Z0-9_]*.tagValue
- The tag valuejava.lang.IllegalArgumentException
- If the tagName does not match [a-zA-Z_][a-zA-Z0-9_]*public java.lang.String getTagName()
public java.lang.String getTagValue()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object