public class AtomicBoolean extends Object implements Serializable
| Constructor and Description |
|---|
AtomicBoolean() |
AtomicBoolean(boolean initialValue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compareAndSet(boolean expect,
boolean update) |
boolean |
get() |
boolean |
getAndSet(boolean newValue) |
void |
lazySet(boolean newValue) |
void |
set(boolean newValue) |
boolean |
weakCompareAndSet(boolean expect,
boolean update) |
public AtomicBoolean(boolean initialValue)
public AtomicBoolean()
public final boolean get()
public final void set(boolean newValue)
public final void lazySet(boolean newValue)
public final boolean getAndSet(boolean newValue)
public final boolean compareAndSet(boolean expect,
boolean update)
public final boolean weakCompareAndSet(boolean expect,
boolean update)
Copyright © 2026. All rights reserved.