Pular para o conteúdo principal

Class: AtomicBoolean

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

Members

SignatureDescription
AtomicBoolean(boolean)Creates a new instance of AtomicBoolean.
compareAndSet(boolean, boolean)Compares this instance with another for equality/order.
get()Returns the current value.
getAndSet(boolean)Returns the current and set.
lazySet(boolean)Performs the lazySet operation using the provided parameters (value).
set(boolean)Sets or updates the the value.
weakCompareAndSet(boolean, boolean)Performs the weakCompareAndSet operation using the provided parameters (expect, update).