Builder

trait Builder

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.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def add(key: String, value: String): Builder

Adds a new key/value pair to the builder.

Adds a new key/value pair to the builder.

def add(key: String, value: Long): Builder

Adds a new key/value pair to the builder.

Adds a new key/value pair to the builder.

def add(key: String, value: Boolean): Builder

Adds a new key/value pair to the builder.

Adds a new key/value pair to the builder.

def add(tags: TagSet): Builder

Adds all key/value pairs to the builder.

Adds all key/value pairs to the builder.

def build(): TagSet

Creates a new TagSet instance that includes all valid key/value pairs added to this builder.

Creates a new TagSet instance that includes all valid key/value pairs added to this builder.