Skip to content

Maximum

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

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

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

Constructors

Maximum

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.