API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.concurrent.atomic. AtomicBoolean View Source
Author(s)
Doug Lea
Since
1.5
Version
Serial
Hierarchy
 Object
      AtomicBoolean
Implements
 Serializable
Subclasses
Description
public class AtomicBoolean
  A boolean value that may be updated atomically.
See also:   
Constructors
public AtomicBoolean ()
Creates a new AtomicBoolean with initial value false.
public AtomicBoolean (boolean initialValue)
  Creates a new AtomicBoolean with the given initial value.
Methods
Hide/Show inherited methods
publicfinal boolean compareAndSet (boolean expect, boolean update)
  Atomically sets the value to the given updated value if the current value == the expected value.
publicfinal boolean get ()
  Returns the current value.
publicfinal boolean getAndSet (boolean newValue)
  Atomically sets to the given value and returns the previous value.
publicfinal void lazySet (boolean newValue)
  Eventually sets to the given value.
publicfinal void set (boolean newValue)
  Unconditionally sets to the given value.
public String toString ()
  Returns the String representation of the current value.
public boolean weakCompareAndSet (boolean expect, boolean update)
  Atomically sets the value to the given updated value if the current value == the expected value.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar