Java.Util.Concurrent.Atomic.AtomicInteger Members

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

See Also: Inherited members from Java.Lang.Number

Public Constructors

Creates a new AtomicInteger with initial value 0.
Creates a new AtomicInteger 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]
AndDecrementint. Atomically decrements by one the current value.
[read-only]
AndIncrementint. 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(int) : int
Atomically adds the given value to the current value.
CompareAndSet(int, int) : bool
Atomically sets the value to the given updated value if the current value == the expected value.
DecrementAndGet() : int
Atomically decrements by one the current value.
override
DoubleValue() : double
Returns the value of this AtomicInteger as a double after a widening primitive conversion.
override
FloatValue() : float
Returns the value of this AtomicInteger as a float after a widening primitive conversion.
Get() : int
Gets the current value.
GetAndAdd(int) : int
Atomically adds the given value to the current value.
GetAndSet(int) : int
Atomically sets to the given value and returns the old value.
IncrementAndGet() : int
Atomically increments by one the current value.
override
IntValue() : int
Returns the value of this AtomicInteger as an int.
LazySet(int)
Eventually sets to the given value.
override
LongValue() : long
Returns the value of this AtomicInteger as a long after a widening primitive conversion.
Set(int)
Sets to the given value.
WeakCompareAndSet(int, int) : bool
Atomically sets the value to the given updated value if the current value == the expected value.