RequiredContextParamType

class RequiredContextParamType<V : Any, I : ContextIntention<I>>(id: Key, validate: (V) -> Boolean = { true }, copy: (V) -> V = { it }) : ContextParamType<V, I>

A context parameter type that is required in the intention it belongs to.

Constructors

Link copied to clipboard
constructor(id: Key, validate: (V) -> Boolean = { true }, copy: (V) -> V = { it })

Properties

Link copied to clipboard
val copy: (V) -> V

Copies a value.

Link copied to clipboard
val id: Key

The id of this parameter type, should be unique for I.

Link copied to clipboard
val validate: (V) -> Boolean

Validates whether a value meets the requirements of this parameter type.

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
open override fun toString(): String