Share via


AtomicReference Constructors

Definition

Overloads

AtomicReference()

Creates a new AtomicReference with null initial value.

AtomicReference(Object)

Creates a new AtomicReference with the given initial value.

AtomicReference(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

AtomicReference()

Creates a new AtomicReference with null initial value.

[Android.Runtime.Register(".ctor", "()V", "")]
public AtomicReference ();
Attributes

Remarks

Creates a new AtomicReference with null initial value.

Java documentation for java.util.concurrent.atomic.AtomicReference.AtomicReference().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

AtomicReference(Object)

Creates a new AtomicReference with the given initial value.

[Android.Runtime.Register(".ctor", "(Ljava/lang/Object;)V", "")]
public AtomicReference (Java.Lang.Object? initialValue);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Object;)V", "")>]
new Java.Util.Concurrent.Atomic.AtomicReference : Java.Lang.Object -> Java.Util.Concurrent.Atomic.AtomicReference

Parameters

initialValue
Object

the initial value

Attributes

Remarks

Creates a new AtomicReference with the given initial value.

Java documentation for java.util.concurrent.atomic.AtomicReference.AtomicReference(V).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

AtomicReference(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected AtomicReference (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Concurrent.Atomic.AtomicReference : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.Atomic.AtomicReference

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to