TransactionValue

sealed class TransactionValue<T>

Represents a value in a transaction step. Enables passing both constant values and dynamic references to results of previous steps in the same transaction.

Parameters

T

The type of the value represented by this instance.

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
sealed class FromStep<T>(val handle: StepHandle<*>) : TransactionValue<T>

Reference to the result from a previous step. This class is the base for more specific reference types.

Link copied to clipboard
class Transformed<IN, OUT>(val source: TransactionValue<IN>, val transform: (IN) -> OUT) : TransactionValue<OUT>

Result of transforming another value.

Link copied to clipboard
data class Value<T>(val value: T) : TransactionValue<T>

Constant, predefined value.

Functions

Link copied to clipboard
fun <IN, OUT> TransactionValue<IN>.map(transformation: (IN) -> OUT): TransactionValue<OUT>

Applies a transformation to a TransactionValue, creating a new, transformed value. This function is type-safe.