CustomSignals.Builder

class CustomSignals.Builder


Builder for constructing CustomSignals instances.

Summary

Public constructors

Public functions

CustomSignals

Creates a CustomSignals instance with the added custom signals.

CustomSignals.Builder
put(key: String, value: String?)

Adds a custom signal with a value that can be a string or null to the builder.

CustomSignals.Builder
put(key: String, value: Long)

Adds a custom signal with a long value to the builder.

CustomSignals.Builder
put(key: String, value: Double)

Adds a custom signal with a double value to the builder.

Public constructors

Builder

Builder()

Public functions

build

fun build(): CustomSignals

Creates a CustomSignals instance with the added custom signals.

Returns
CustomSignals

The constructed CustomSignals instance.

put

fun put(key: String, value: String?): CustomSignals.Builder

Adds a custom signal with a value that can be a string or null to the builder.

Parameters
key: String

The key for the custom signal.

value: String?

The string value associated with the key. Can be null.

Returns
CustomSignals.Builder

This Builder instance to allow chaining of method calls.

put

fun put(key: String, value: Long): CustomSignals.Builder

Adds a custom signal with a long value to the builder.

Parameters
key: String

The key for the custom signal.

value: Long

The long value for the custom signal.

Returns
CustomSignals.Builder

This Builder instance to allow chaining of method calls.

put

fun put(key: String, value: Double): CustomSignals.Builder

Adds a custom signal with a double value to the builder.

Parameters
key: String

The key for the custom signal.

value: Double

The double value for the custom signal.

Returns
CustomSignals.Builder

This Builder instance to allow chaining of method calls.