public class Tag
extends java.lang.Object
Constructor | Description |
---|---|
Tag(java.lang.String tag) |
Initializes a new instance of tag class.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object obj) |
It compares the object with the tag and return true if is equal, otherwise it will return false.
|
int |
getHashCode() |
Gets the HashCode for the tag.
|
java.lang.String |
getTagName() |
Gets the string based tag name.
|
void |
setTagName(java.lang.String tag) |
Sets the string based tag name.
|
java.lang.String |
ToString() |
Returns string representation of the tag class.
|
public Tag(java.lang.String tag)
tag
- Name of the tag.public java.lang.String getTagName()
public void setTagName(java.lang.String tag)
tag
- String based tag name.public java.lang.String ToString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object passed must be of type Tag. Otherwise IllegalArgumentException
will be thrown.public int getHashCode()