OrderId

class OrderId(value: String = newId()) : UUIDEntityId

Represents the unique identifier for an Order entity.

This class extends the UUIDEntityId, which provides a UUID-based identifier. If no value is provided during instantiation, a new UUID will be generated by default.

Parameters

value

The string representation of the UUID. Defaults to a newly generated UUID.

Constructors

Link copied to clipboard
constructor(value: String = newId())

Creates an OrderId with the specified value or generates a new UUID if no value is provided.

Properties

Link copied to clipboard
open override val value: String

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard