Or

@Serializable
data class Or(val terms: List<Affinity>) : Affinity

Satisfied when any term is satisfied. An empty terms is vacuously false.

Constructors

Link copied to clipboard
constructor(terms: List<Affinity>)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
infix fun Affinity.and(other: Affinity): Affinity

Conjunction: a and b is satisfied when both this and other are.

Link copied to clipboard
open override fun matches(caps: CapSet): Boolean

Whether a peer advertising caps satisfies this predicate. Pure and deterministic.

Link copied to clipboard
infix fun Affinity.or(other: Affinity): Affinity

Disjunction: a or b is satisfied when either this or other is.