Package com.naver.ads.util
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.
-
-
Constructor Summary
Constructors Constructor Description SynchronizedProperty(T defaultValue)Constructs a new SynchronizedProperty instance.
-
Method Summary
-
-
Constructor Detail
-
SynchronizedProperty
SynchronizedProperty(T defaultValue)
Constructs a new SynchronizedProperty instance.- Parameters:
defaultValue- the default value of this property.
-
-
-
-