Builder

public final class Builder

A mutable builder for tags.

Constructors

Link copied to clipboard
public void Tags.Builder()

Functions

Link copied to clipboard
@CanIgnoreReturnValue()
public Tags.Builder addTag(String name)
Adds an empty tag, ensuring that the given name exists in the tag map with at least an empty set of values.
@CanIgnoreReturnValue()
public Tags.Builder addTag(String name, boolean value)
Adds a boolean value for the given name, ensuring that the values for the given name contain at least this value.
@CanIgnoreReturnValue()
public Tags.Builder addTag(String name, double value)
Adds a double value for the given name, ensuring that the values for the given name contain at least this value.
@CanIgnoreReturnValue()
public Tags.Builder addTag(String name, String value)
Adds a string value for the given name, ensuring that the values for the given name contain at least this value.
@CanIgnoreReturnValue()
public Tags.Builder addTag(String name, long value)
Adds a long value for the given name, ensuring that the values for the given name contain at least this value.
Link copied to clipboard
public Tags build()
Returns an immutable tags instance.
Link copied to clipboard
public String toString()