BoundKernelParameter

open class BoundKernelParameter<T : Any>(val parameter: KernelParameter<T>, val valueProvider: () -> T?)

Class that binds a parameter handler to a value provider function. This allows for serializing parameter values without directly accessing the storage mechanism.

Parameters

T

The type of value that this parameter represents

Inheritors

Constructors

Link copied to clipboard
constructor(parameter: KernelParameter<T>, valueProvider: () -> T?)

Properties

Link copied to clipboard

The parameter handler to use for serialization

Link copied to clipboard
open val valueProvider: () -> T?

Function that provides the current value of the parameter

Functions

Link copied to clipboard
fun serialize(argsBuilder: MutableList<String>)

Serializes the current parameter value and adds it to the argument list. If the value is null or the parameter handler returns null, nothing is added.