Java.Util.Concurrent.Atomic.AtomicInteger: Method Members

The methods of Java.Util.Concurrent.Atomic.AtomicInteger are listed below. For a list of all members, see the AtomicInteger Members list.

See Also: Inherited members from Java.Lang.Number

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.