A temporary structure that accumulates key/value and creates a new TagSet instance from them.
A temporary structure that accumulates key/value and creates a new TagSet instance from them. It is faster to use a Builder and add tags to it rather than creating TagSet and add each key individually. Builder instances rely on internal mutable state and are not thread safe.
Describes a strategy to lookup values from a TagSet instance.
Describes a strategy to lookup values from a TagSet instance. Implementations of this interface will be provided with the actual data structure containing the tags and must perform any necessary runtime type checks to ensure that the returned value is in assignable to the expected type T.
Several implementation are provided in the Lookup companion object and it is recommended to import and use those definitions when looking up keys from a Tags instance.
Abstracts the actual storage used for a TagSet.
Abstracts the actual storage used for a TagSet. This interface resembles a stripped down interface of an immutable map of String to Any, used to expose the underlying structure where tags are stored to Lookups, without leaking the actual implementation.
A valid instance of tags that doesn't contain any pairs.
Creates a new Builder instance.
Constructs a new TagSet instance from a Map.
Constructs a new TagSet instance from a Map. The returned TagSet will only contain the entries that have String, Long or Boolean values from the supplied map, any other entry in the map will be ignored.
Constructs a new TagSet instance from a Map.
Constructs a new TagSet instance from a Map. The returned TagSet will only contain the entries that have String, Long or Boolean values from the supplied map, any other entry in the map will be ignored.
Construct a new TagSet instance with a single key/value pair.
Construct a new TagSet instance with a single key/value pair.
Construct a new TagSet instance with a single key/value pair.