Package-level declarations

Types

Link copied to clipboard
open class CollectionSizeValidator(minSize: Int, maxSize: Int = Int.MAX_VALUE) : Validator<Collection<*>>

Base for collection-size validators: the collection's size must be in minSize..maxSize.

Link copied to clipboard

Base for Double range validators: the value must be finite and in min..max (inclusive).

Link copied to clipboard

The value must be a finite number — rejects NaN, Infinity, and -Infinity.

Link copied to clipboard
open class IntRangeValidator(range: IntRange) : Validator<Int>

Base for Int range validators: the value must be in range.

Link copied to clipboard

Base for Long range validators: the value must be in range.

Link copied to clipboard

The value must be zero or positive (>= 0.0); rejects NaN.

Link copied to clipboard

The value must be zero or positive (>= 0).

Link copied to clipboard

The value must be zero or positive (>= 0).

Link copied to clipboard
Link copied to clipboard

The value must be strictly positive (> 0.0); rejects NaN.

Link copied to clipboard

The value must be strictly positive (> 0).

Link copied to clipboard

The value must be strictly positive (> 0).

Link copied to clipboard
open class RegexValidator(pattern: Regex, reason: String) : Validator<String>

Base for pattern validators: the value must match pattern entirely, otherwise reason is reported.

Link copied to clipboard
open class StringLengthValidator(minLength: Int, maxLength: Int = Int.MAX_VALUE) : Validator<String>

Base for string-length validators: the value's length must be in minLength..maxLength.