Static
emptyThe number of attributes this metadata instance contains.
Static
createAdds named attribute
value to this metadata.
Target attribute name.
Value to add.
Modified metadata instance containing both attributes of this instance and the added ones.
Adds typed attribute
value to this metadata.
Attribute input type.
Target attribute.
Value to add.
Modified metadata instance containing both attributes of this instance and the added ones.
Iterates over attributes.
Iterable iterator of attributes.
Obtains the value of the named attribute
.
If attribute has multiple values, then returns the last one.
Target attribute name.
Either attribute value, or undefined
if there is no such attribute.
Extracts the typed value of the attribute
.
Attribute value type.
Target attribute.
Either attribute value, or undefined
if attribute value can not be extracted.
Obtains all values of the named attribute
.
Target attribute name.
Either array of attribute values, or empty array if there is no such attribute.
Extracts all typed values of the attribute
.
Attribute value type.
Target attribute.
Either array of attribute values, or empty array attribute values can not be extracted.
Represents this metadata as string.
The encoded metadata.
Generated using TypeDoc
Charge metadata consisting of attributes and their values.
Metadata instance is mutable, unless frozen. When frozen, each modification method call returns new, mutable clone. When mutable, each modification method call returns
this
instance.Applies copy-on-write technique to avoid excessive data copying.