public class Tag extends java.lang.Object implements java.lang.Comparable<Tag>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
key
The key of this tag.
|
static char |
KEY_VALUE_SEPARATOR |
java.lang.String |
value
The value of this tag.
|
| Constructor and Description |
|---|
Tag(java.lang.String tag) |
Tag(java.lang.String key,
java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Tag tag)
Compares this tag to the specified tag.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public static final char KEY_VALUE_SEPARATOR
public final java.lang.String key
public final java.lang.String value
public Tag(java.lang.String tag)
tag - the textual representation of the tag.public Tag(java.lang.String key,
java.lang.String value)
key - the key of the tag.value - the value of the tag.public int compareTo(Tag tag)
compareTo in interface java.lang.Comparable<Tag>tag - The tag to compare to.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object