of

fun of(vararg questions: Question<*>): DecisionSpec

Returns a spec holding the given questions in the given order.

Parameters

questions

the questions, which must have unique names

Throws

if there are no questions or two share a name


fun of(questions: List<Question<*>>): DecisionSpec

Returns a spec holding the given questions in list order. Later changes to the list do not affect the spec.

Parameters

questions

the questions, which must have unique names

Throws

if there are no questions or two share a name