public class Tag extends Object implements Serializable, Cloneable
| Constructor and Description |
|---|
Tag() |
| Modifier and Type | Method and Description |
|---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
Returns the value of the Key property for this object.
|
String |
getValue()
Returns the value of the Value property for this object.
|
int |
hashCode() |
void |
setKey(String key)
Sets the value of the Key property for this object.
|
void |
setValue(String value)
Sets the value of the Value property for this object.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Tag |
withKey(String key)
Sets the value of the Key property for this object.
|
Tag |
withValue(String value)
Sets the value of the Value property for this object.
|
public String getKey()
Constraints:
Length: 1 - 128
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
public void setKey(String key)
Constraints:
Length: 1 - 128
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
key - The new value for the Key property for this object.public Tag withKey(String key)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
key - The new value for the Key property for this object.public String getValue()
Constraints:
Length: 0 - 256
public void setValue(String value)
Constraints:
Length: 0 - 256
value - The new value for the Value property for this object.public Tag withValue(String value)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
value - The new value for the Value property for this object.public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.