NotNUllVar

class NotNUllVar<T : Any> @JvmOverloads constructor(val once: Boolean = false) : ReadWriteProperty<Any, T> (source)

Getting a non-null variable.

Since

0.0.1

Parameters

T

The variable type.

once

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

Constructors

Link copied to clipboard
constructor(once: Boolean = false)

Properties

Link copied to clipboard
private val once: Boolean = false
Link copied to clipboard
private var value: T?

Functions

Link copied to clipboard
open operator override fun getValue(thisRef: Any, property: KProperty<*>): T
Link copied to clipboard
open operator override fun setValue(thisRef: Any, property: KProperty<*>, value: T)