SimpleConstraint¶
abstract class SimpleConstraint<in T>(val name: String, factory: BsonFactory) : Schema.ComplexConstraint<T>
Helper to create instances of Constraint that handle a single constraint named name.
Inheritors¶
Constructors¶
SimpleConstraint¶
constructor(name: String, factory: BsonFactory)
Properties¶
name¶
Functions¶
toString¶
writeTo¶
override fun writeTo(writer: BsonFieldWriter)
Writes this object to the provided writer.