ContextParamType

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

A context parameter type.

Inheritors

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