public class TagKeyOnly
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The key of a tag.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key
The name of the key.
|
Constructor and Description |
---|
TagKeyOnly() |
Modifier and Type | Method and Description |
---|---|
TagKeyOnly |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
The name of the key.
|
int |
hashCode() |
void |
setKey(java.lang.String key)
The name of the key.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagKeyOnly |
withKey(java.lang.String key)
The name of the key.
|
public void setKey(java.lang.String key)
The name of the key.
key
- The name of the key.public java.lang.String getKey()
The name of the key.
public TagKeyOnly withKey(java.lang.String key)
The name of the key.
key
- The name of the key.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public TagKeyOnly clone()
clone
in class java.lang.Object