STRICT

@Immutable(containerOf = ["T"])
data class STRICT<T>(val l: String, val expectedVal: T, m: AttributeMapper) : AttributeConstraint<T>

Checks that the attribute exists and matches the expected value.

Parameters

expectedVal

The expected value of the attribute.

Constructors

Link copied to clipboard
constructor(l: String, expectedVal: T, m: AttributeMapper)

Properties

Link copied to clipboard
Link copied to clipboard
val l: String
Link copied to clipboard
open override val label: String

Fixed label, suitable for logging or metrics.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun check(description: KeyDescription): Constraint.Result

Evaluates whether the description is satisfied by this AttributeConstraint.