Module java.base

Class AtomicBoolean

java.lang.Object
java.util.concurrent.atomic.AtomicBoolean
All Implemented Interfaces:
Serializable

public class AtomicBoolean extends Object implements Serializable
A boolean value that may be updated atomically. See the VarHandle specification for descriptions of the properties of atomic accesses. An AtomicBoolean is used in applications such as atomically updated flags, and cannot be used as a replacement for a Boolean.
Since:
1.5
See Also: