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.| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | PATTERN
Pattern that matches regex [a-zA-Z_][a-zA-Z0-9_]* |
| private final String | tagName
Name of the Tag. |
| private final String | tagValue
Value of the Tag. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public String | |
| public int | |
| public String |
| PATTERN | back to summary |
|---|---|
| private static final Pattern PATTERN Pattern that matches regex [a-zA-Z_][a-zA-Z0-9_]* | |
| tagName | back to summary |
|---|---|
| private final String tagName Name of the Tag. Must match the regex [a-zA-Z_][a-zA-Z0-9_]*. A required field which holds the name of the tag. | |
| tagValue | back to summary |
|---|---|
| private final String tagValue Value of the Tag. A required field which holds the value of the tag. | |
| Tag | back to summary |
|---|---|
| public Tag(String tagName, String tagValue) throws IllegalArgumentException Constructs the Tag object with the given tag name and tag value
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getTagName | back to summary |
|---|---|
public String getTagName()
| |
| getTagValue | back to summary |
|---|---|
public String getTagValue()
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |