Package: java.util.concurrent.atomic

## [Java] Class AtomicBoolean

- java.util.concurrent.atomic.AtomicBoolean

-     public class AtomicBoolean
      extends Object

  GDK enhancements for AtomicBoolean.

  displayName:
    AtomicBoolean
  receiverFqcn:
    java.util.concurrent.atomic.AtomicBoolean

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public boolean` | `asBoolean()` Coerce an AtomicBoolean instance to a boolean value.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `addShutdownHook, any, any, asBoolean, asType, clamp, clamp, collect, collect, collect, dump, each, eachMatch, eachMatch, eachWithIndex, every, every, find, find, findAll, findAll, findIndexOf, findIndexOf, findIndexValues, findIndexValues, findLastIndexOf, findLastIndexOf, findResult, findResult, findResult, findResult, getAt, getMetaClass, getMetaPropertyValues, getProperties, grep, grep, hasProperty, identity, inject, inject, inject, inject, inspect, invokeMethod, is, isCase, isNotCase, iterator, metaClass, print, print, printf, printf, println, println, println, putAt, respondsTo, respondsTo, setMetaClass, sleep, sleep, split, sprintf, sprintf, stream, takeIf, tap, toString, use, use, use, with, with, withCloseable, withCloseable, withMethodClosure, withStream, withStream, withTraits`

- - ### Method Detail

    - #### public boolean asBoolean()

      Coerce an AtomicBoolean instance to a boolean value.

           import java.util.concurrent.atomic.AtomicBoolean

           // you can omit ".asBoolean()"
           assert  new AtomicBoolean(true).asBoolean()
           assert !new AtomicBoolean(false).asBoolean()
           assert !new AtomicBoolean(true).tap{set(false)}

      Since:
        5.0.0