-
- All Implemented Interfaces:
public final class SynchronizedReference<T extends Object>An object reference that may be updated thread-safely.
-
-
Constructor Summary
Constructors Constructor Description SynchronizedReference(T value)
-
Method Summary
Modifier and Type Method Description final Tget()Provides an existing T object reference. final TgetOrCreate(Function0<T> builder)Provides either an existing T object or creates a new one using builder function. final Booleanreset()Drops an existing T object reference to null. final Tset(T value)Accepts value instance of T and holds its reference.
-