Udostępnij za pośrednictwem


LongAccumulator.Get Method

Definition

Returns the current value.

[Android.Runtime.Register("get", "()J", "GetGetHandler", ApiSince=24)]
public virtual long Get ();
[<Android.Runtime.Register("get", "()J", "GetGetHandler", ApiSince=24)>]
abstract member Get : unit -> int64
override this.Get : unit -> int64

Returns

the current value

Attributes

Remarks

Returns the current value. The returned value is <em>NOT</em> an atomic snapshot; invocation in the absence of concurrent updates returns an accurate result, but concurrent updates that occur while the value is being calculated might not be incorporated.

Java documentation for java.util.concurrent.atomic.LongAccumulator.get().

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