Skip to content

Minimum

class Minimum(
    val number: Number, 
    val numberType: KType, 
    val exclusive: Boolean, 
    factory: BsonFactory
) : Schema.ComplexConstraint<Number> 

This property must have a value greater than or equal to number.

If the property does not contain a number, this constraint is ignored.

Constructors

Minimum

constructor(
    number: Number, 
    numberType: KType, 
    exclusive: Boolean, 
    factory: BsonFactory
)

Properties

exclusive

number

val number: Number

numberType

Functions

toString

override fun toString(): String

JSON representation of this constraint object.

writeTo

open override fun writeTo(writer: BsonFieldWriter)

Writes this object to the provided writer.