OrderStateId

sealed class OrderStateId(val displayName: String)(source)

Type-safe identifier for the lifecycle states of a SupplyChainModel.Order. Each state in the order state machine has exactly one OrderStateId singleton; sealed-class hierarchy lets listener bodies use exhaustive when and referential identity (===) checks instead of stringly-typed comparison on displayName.

The state-machine implementation lives on SupplyChainModel.OrderState and uses these IDs to label each concrete state class.

Inheritors

Constructors

Link copied to clipboard
protected constructor(displayName: String)

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

the human-readable name of the state, with the "ORDER_" prefix preserved from the original Java naming so existing stateName-based code paths keep working.

Functions

Link copied to clipboard
open override fun toString(): String