AtomicInteger
Complete API reference for AtomicInteger, including constructors, attributes, virtual attributes, and methods.
Package: JAVARuntime
Category: Atomic
Component: no
public class AtomicInteger
Constructors
| Signature | Description |
|---|---|
AtomicInteger(AtomicInteger) | Executes AtomicInteger and returns after the underlying engine call finishes. |
AtomicInteger() | Executes AtomicInteger and returns after the underlying engine call finishes. |
AtomicInteger(int) | Creates a new instance of AtomicInteger. |
Attributes
| Name | Type | Description |
|---|---|---|
instance | AtomicInteger | Represents the instance value stored on this instance. Read or assign to update the property. |
Methods
| Signature | Returns | Description |
|---|---|---|
get() | int | Returns the current value. |
set(int) | void | Sets or updates the the value. |
lazySet(int) | void | Performs the lazySet operation using the provided parameters (value). |
getAndSet(int) | int | Returns the current and set. |
getAndIncrement() | int | Returns the current and increment. |
getAndDecrement() | int | Returns the current and decrement. |
incrementAndGet() | int | Executes incrementAndGet and returns after the underlying engine call finishes. |
decrementAndGet() | int | Executes decrementAndGet and returns after the underlying engine call finishes. |
getAndAdd(int) | int | Returns the current and add. |
addAndGet(int) | int | Adds and get to the collection. |
compareAndSet(int, int) | boolean | Compares this instance with another for equality/order. |
weakCompareAndSet(int, int) | boolean | Performs the weakCompareAndSet operation using the provided parameters (expect, update). |