| Constructor and Description |
|---|
BasicTag(String key,
String value)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static BasicTag |
convert(Tag t)
Convert an arbitrary implementation of
Tag to BasicTag. |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
key()
Key for the tag.
|
String |
toString() |
String |
value()
Value for the tag.
|
public static BasicTag convert(Tag t)
Tag to BasicTag. When
used as part of an id this is needed to ensure correct behavior. Alternative
implementations will likely vary the hashCode/equals causing ids that should
be equivalent to not match as expected.