Package-level declarations

Types

Link copied to clipboard
class NotNullOrDefault<T : Any>(val defaultValue: T) : ReadWriteProperty<Any, T>

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.

Link copied to clipboard
class NotNUllVar<T : Any> @JvmOverloads constructor(val once: Boolean = false) : ReadWriteProperty<Any, T>

Getting a non-null variable.

Link copied to clipboard
open class SingletonHolder<out T, in A>(val creator: A.() -> T)

Use SingletonHolder to build a singleton with parameters.

Functions

Link copied to clipboard
fun <T> cast(obj: Any?): T

Class cast.

Link copied to clipboard
Link copied to clipboard

A placeholder function that does nothing.