Bagikan melalui


DoubleAccumulator.Get Method

Definition

Returns the current value.

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

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.DoubleAccumulator.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