Class SynchronizedProperty

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

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

    Decorates KProperty to synchronize its behavior for a multithreaded environment.

    Methods are synchronized, then forwarded to the decorated property.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • 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