Constructor and Description |
---|
BasicTag(java.lang.String key,
java.lang.String value)
Creates a new instance with the specified key and value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getKey()
Returns the key corresponding to this tag.
|
java.lang.String |
getValue()
Returns the value corresponding to this tag.
|
int |
hashCode() |
static BasicTag |
parseTag(java.lang.String tagString)
Deprecated.
Use Tags.parseTag instead.
|
java.lang.String |
tagString()
Returns the string representation of this tag.
|
java.lang.String |
toString() |
public BasicTag(java.lang.String key, java.lang.String value)
public java.lang.String getKey()
public java.lang.String getValue()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static BasicTag parseTag(java.lang.String tagString)
key=value
.
Whitespace at the ends of the key and value will be removed. Both the key and value must
have at least one character.tagString
- string with encoded tag