ReadOnlySpecification

interface ReadOnlySpecification<out T : Any>

Functions

empty
Link copied to clipboard
common
abstract fun empty(): T

Generate an empty object

invoke
Link copied to clipboard
common
open operator fun invoke(action: T.() -> Unit): T

A convenience method to use specifications in builders

read
Link copied to clipboard
common
abstract fun read(source: Meta): T

Read generic read-only meta with this Specification producing instance of desired type. The source is not mutated even if it is in theory mutable

Inheritors

Specification
Link copied to clipboard