Java.Util.Concurrent.Atomic.AtomicLong Members

The members of Java.Util.Concurrent.Atomic.AtomicLong are listed below.

See Also: Inherited members from Java.Lang.Number

Public Constructors

Creates a new AtomicLong with initial value 0.
Creates a new AtomicLong with the given initial value.

Protected Constructors

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

Public Properties

[read-only]
AndDecrementlong. Atomically decrements by one the current value.
[read-only]
AndIncrementlong. Atomically increments by one the current value.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

AddAndGet(long) : long
Atomically adds the given value to the current value.
CompareAndSet(long, long) : bool
Atomically sets the value to the given updated value if the current value == the expected value.
DecrementAndGet() : long
Atomically decrements by one the current value.
override
DoubleValue() : double
Returns the value of this AtomicLong as a double after a widening primitive conversion.
override
FloatValue() : float
Returns the value of this AtomicLong as a float after a widening primitive conversion.
Get() : long
Gets the current value.
GetAndAdd(long) : long
Atomically adds the given value to the current value.
GetAndSet(long) : long
Atomically sets to the given value and returns the old value.
IncrementAndGet() : long
Atomically increments by one the current value.
override
IntValue() : int
Returns the value of this AtomicLong as an int after a narrowing primitive conversion.
LazySet(long)
Eventually sets to the given value.
override
LongValue() : long
Returns the value of this AtomicLong as a long.
Set(long)
Sets to the given value.
WeakCompareAndSet(long, long) : bool
Atomically sets the value to the given updated value if the current value == the expected value.