positive

fun positive(initial: Double, name: String? = null): ReadWriteProperty<Any?, Double>(source)

Strict positivity: value must be > 0.0. Throws on construction or assignment otherwise. Pass name to have construction-time errors (where the property name is not yet known) name the field.


fun positive(initial: Int, name: String? = null): ReadWriteProperty<Any?, Int>(source)

Strict positivity: value must be > 0. Throws on construction or assignment otherwise.