Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.rules/Rule/Companion

Companion

object Companion

Properties

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

Functions

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

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

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

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

just
Link copied to clipboard
@JvmStatic
fun <T> just(expected: T): Rule<T>
@JvmStatic
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.

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

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

Generated by Dokka
(c) Tealium 2026