Companion

object Companion

Properties

Link copied to clipboard
const val KEY_CHILDREN: String
Link copied to clipboard
const val KEY_OPERATOR: String
Link copied to clipboard
const val OPERATOR_AND: String
Link copied to clipboard
const val OPERATOR_NOT: String
Link copied to clipboard
const val OPERATOR_OR: String

Functions

Link copied to clipboard
fun <T> all(vararg rules: Rule<T>): Rule<T>
fun <T> all(rules: List<Rule<T>>): Rule<T>

Returns a new Rule that is the logical equivalent of the following operation:

Link copied to clipboard
fun <T> any(vararg rules: Rule<T>): Rule<T>
fun <T> any(rules: List<Rule<T>>): Rule<T>

Returns a new Rule that is the logical equivalent of the following operation:

Link copied to clipboard
fun <T> just(expected: T): Rule<T>
fun <T> just(expected: T, converter: (T) -> DataItem): Rule<T>

Returns a new Rule that represents a given value of T, representing the logic of the type T.

Link copied to clipboard
fun <T> not(rule: Rule<T>): Rule<T>

Returns a new Rule that is the logical equivalent of the following operation: