다음을 통해 공유


AtomicReferenceArray.GetAcquire(Int32) Method

Definition

Returns the current value of the element at index i, with memory effects as specified by VarHandle#getAcquire.

[Android.Runtime.Register("getAcquire", "(I)Ljava/lang/Object;", "", ApiSince=33)]
public Java.Lang.Object? GetAcquire (int i);
[<Android.Runtime.Register("getAcquire", "(I)Ljava/lang/Object;", "", ApiSince=33)>]
member this.GetAcquire : int -> Java.Lang.Object

Parameters

i
Int32

the index

Returns

the value

Attributes

Remarks

Returns the current value of the element at index i, with memory effects as specified by VarHandle#getAcquire.

Added in 9.

Java documentation for java.util.concurrent.atomic.AtomicReferenceArray.getAcquire(int).

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