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

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

See Also: Inherited members from Java.Lang.Number

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.