Class LazyMutable

  • All Implemented Interfaces:
    kotlin.properties.ReadOnlyProperty , kotlin.properties.ReadWriteProperty

    
    public final class LazyMutable<T extends Object>
     implements ReadWriteProperty<Any, T>
                        

    A delegate allowing to lazily initialise a non-null mutable variable (= var).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      LazyMutable(Function0<T> initializer)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      T getValue(Object thisRef, KProperty<?> property)
      Unit setValue(Object thisRef, KProperty<?> property, T value)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait