Skip to content

Not-null variables

NotNUllVar

Version 0.0.1

NotNUllVar allows you to create non-null variables.

private var age by NotNUllVar<Int>()

Once set

if true, the variable will only set by once, false otherwise.

NotNullOrDefault

Version 0.0.6

Getting a non-null variable. If no other value is set, the defaultValue will be used as the value of the variable and no changes are allowed.

private var fileMaxSize by NotNullOrDefault(1024L)