Pular para o conteúdo principal

Class: AtomicInteger

This page documents the methods and fields available in the AtomicInteger class.

Members

SignatureDescription
AtomicInteger(int)Creates a new instance of AtomicInteger.
addAndGet(int)Adds and get to the collection.
compareAndSet(int, int)Compares this instance with another for equality/order.
decrementAndGet()Performs the decrementAndGet operation.
get()Returns the current value.
getAndAdd(int)Returns the current and add.
getAndDecrement()Returns the current and decrement.
getAndIncrement()Returns the current and increment.
getAndSet(int)Returns the current and set.
incrementAndGet()Performs the incrementAndGet operation.
lazySet(int)Performs the lazySet operation using the provided parameters (value).
set(int)Sets or updates the the value.
weakCompareAndSet(int, int)Performs the weakCompareAndSet operation using the provided parameters (expect, update).