Lazy
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
interface Lazy<out T>
Properties
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
value
Gets the lazily initialized value of the current Lazy instance. Once the value was initialized it must not change during the rest of lifetime of this Lazy instance.
abstract val value: T
Functions
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
isInitialized
Returns true
if a value for this Lazy instance has been already initialized, and false
otherwise. Once this function has returned true
it stays true
for the rest of lifetime of this Lazy instance.
abstract fun isInitialized(): Boolean
Extension Functions
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-lazy/index.html