public class Tag extends Object implements Serializable, Cloneable
Metadata assigned to the stream, consisting of a key-value pair.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
A unique identifier for the tag.
|
String |
getValue()
An optional string, typically used to describe or define the tag.
|
int |
hashCode() |
void |
setKey(String key)
A unique identifier for the tag.
|
void |
setValue(String value)
An optional string, typically used to describe or define the tag.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Tag |
withKey(String key)
A unique identifier for the tag.
|
Tag |
withValue(String value)
An optional string, typically used to describe or define the tag.
|
public String getKey()
Constraints:
Length: 1 - 128
public void setKey(String key)
Constraints:
Length: 1 - 128
key
- A unique identifier for the tag. Maximum length: 128 characters. Valid
characters: Unicode letters, digits, white space, _ . / = + - % @public Tag withKey(String key)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
key
- A unique identifier for the tag. Maximum length: 128 characters. Valid
characters: Unicode letters, digits, white space, _ . / = + - % @public String getValue()
Constraints:
Length: 0 - 256
public void setValue(String value)
Constraints:
Length: 0 - 256
value
- An optional string, typically used to describe or define the tag.
Maximum length: 256 characters. Valid characters: Unicode letters,
digits, white space, _ . / = + - % @public Tag withValue(String value)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
value
- An optional string, typically used to describe or define the tag.
Maximum length: 256 characters. Valid characters: Unicode letters,
digits, white space, _ . / = + - % @public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.