public class Tag extends 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(String tagName,
String tagValue)
Constructs the Tag object with the given tag name and tag value
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getTagName() |
String |
getTagValue() |
int |
hashCode() |
String |
toString() |
public Tag(String tagName, String tagValue) throws IllegalArgumentException
tagName
- The tag name, must match the regex [a-zA-Z_][a-zA-Z0-9_]*.tagValue
- The tag valueIllegalArgumentException
- If the tagName does not match [a-zA-Z_][a-zA-Z0-9_]*Copyright © 2019. All rights reserved.