class AtomicBoolean extends Serializable

Annotations
@SerialVersionUID()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AtomicBoolean
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AtomicBoolean(initialValue: Boolean)
  2. new AtomicBoolean()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def compareAndExchange(expectedValue: Boolean, newValue: Boolean): Boolean

    Atomically sets the value to newValue if the current value, referred to as the witness value, == expectedValue, with memory effects as specified by VarHandle#compareAndExchange.

    Atomically sets the value to newValue if the current value, referred to as the witness value, == expectedValue, with memory effects as specified by VarHandle#compareAndExchange.

    expectedValue

    the expected value

    newValue

    the new value

    returns

    the witness value, which will be the same as the expected value if successful

    Since

    9

  7. final def compareAndExchangeAcquire(expectedValue: Boolean, newValue: Boolean): Boolean

    Atomically sets the value to newValue if the current value, referred to as the witness value, == expectedValue, with memory effects as specified by VarHandle#compareAndExchangeAcquire.

    Atomically sets the value to newValue if the current value, referred to as the witness value, == expectedValue, with memory effects as specified by VarHandle#compareAndExchangeAcquire.

    expectedValue

    the expected value

    newValue

    the new value

    returns

    the witness value, which will be the same as the expected value if successful

    Since

    9

  8. final def compareAndExchangeRelease(expectedValue: Boolean, newValue: Boolean): Boolean

    Atomically sets the value to newValue if the current value, referred to as the witness value, == expectedValue, with memory effects as specified by VarHandle#compareAndExchangeRelease.

    Atomically sets the value to newValue if the current value, referred to as the witness value, == expectedValue, with memory effects as specified by VarHandle#compareAndExchangeRelease.

    expectedValue

    the expected value

    newValue

    the new value

    returns

    the witness value, which will be the same as the expected value if successful

    Since

    9

  9. final def compareAndSet(expectedValue: Boolean, newValue: Boolean): Boolean

    Atomically sets the value to newValue if the current value == expectedValue, with memory effects as specified by VarHandle#compareAndSet.

    Atomically sets the value to newValue if the current value == expectedValue, with memory effects as specified by VarHandle#compareAndSet.

    expectedValue

    the expected value

    newValue

    the new value

    returns

    true if successful. False return indicates that the actual value was not equal to the expected value.

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. final def get(): Boolean

    Returns the current value, with memory effects of volatile read

    Returns the current value, with memory effects of volatile read

    returns

    the current value

  14. final def getAcquire: Boolean

    Returns the current value, with memory effects as specified by VarHandle#getAcquire.

    Returns the current value, with memory effects as specified by VarHandle#getAcquire.

    returns

    the value

    Since

    9

  15. final def getAndSet(newValue: Boolean): Boolean

    Atomically sets the value to newValue and returns the old value, with memory effects as specified by VarHandle#getAndSet.

    Atomically sets the value to newValue and returns the old value, with memory effects as specified by VarHandle#getAndSet.

    newValue

    the new value

    returns

    the previous value

  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def getOpaque: Boolean

    Returns the current value, with memory effects as specified by VarHandle#getOpaque.

    Returns the current value, with memory effects as specified by VarHandle#getOpaque.

    returns

    the value

    Since

    9

  18. final def getPlain(): Boolean

    Returns the current value, with memory semantics of reading as if the variable was declared non-volatile.

    Returns the current value, with memory semantics of reading as if the variable was declared non-volatile.

    returns

    the value

    Since

    9

  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def lazySet(newValue: Boolean): Unit

    Sets the value to newValue, with memory effects as specified by VarHandle#setRelease.

    Sets the value to newValue, with memory effects as specified by VarHandle#setRelease.

    newValue

    the new value

    Since

    1.6

  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def set(newValue: Boolean): Unit

    Sets the value to newValue, with memory effects as specified by VarHandle#setVolatile.

    Sets the value to newValue, with memory effects as specified by VarHandle#setVolatile.

    newValue

    the new value

  26. final def setOpaque(newValue: Boolean): Unit

    Sets the value to newValue, with memory effects as specified by VarHandle#setOpaque.

    Sets the value to newValue, with memory effects as specified by VarHandle#setOpaque.

    newValue

    the new value

    Since

    9

  27. final def setPlain(newValue: Boolean): Unit

    Sets the value to newValue, with memory semantics of setting as if the variable was declared non-volatile and non-final.

    Sets the value to newValue, with memory semantics of setting as if the variable was declared non-volatile and non-final.

    newValue

    the new value

    Since

    9

  28. final def setRelease(newValue: Boolean): Unit

    Sets the value to newValue, with memory effects as specified by VarHandle#setRelease.

    Sets the value to newValue, with memory effects as specified by VarHandle#setRelease.

    newValue

    the new value

    Since

    9

  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String

    Returns the String representation of the current value.

    Returns the String representation of the current value.

    returns

    the String representation of the current value

    Definition Classes
    AtomicBoolean → AnyRef → Any
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def weakCompareAndSetAcquire(expectedValue: Boolean, newValue: Boolean): Boolean

    Possibly atomically sets the value to newValue if the current value == expectedValue, with memory effects as specified by VarHandle#weakCompareAndSetAcquire.

    Possibly atomically sets the value to newValue if the current value == expectedValue, with memory effects as specified by VarHandle#weakCompareAndSetAcquire.

    expectedValue

    the expected value

    newValue

    the new value

    returns

    true if successful

    Since

    9

  35. def weakCompareAndSetPlain(expectedValue: Boolean, newValue: Boolean): Boolean

    Possibly atomically sets the value to newValue if the current value == expectedValue, with memory effects as specified by VarHandle#weakCompareAndSetPlain.

    Possibly atomically sets the value to newValue if the current value == expectedValue, with memory effects as specified by VarHandle#weakCompareAndSetPlain.

    expectedValue

    the expected value

    newValue

    the new value

    returns

    true if successful

    Since

    9

  36. final def weakCompareAndSetRelease(expectedValue: Boolean, newValue: Boolean): Boolean

    Possibly atomically sets the value to newValue if the current value == expectedValue, with memory effects as specified by VarHandle#weakCompareAndSetRelease.

    Possibly atomically sets the value to newValue if the current value == expectedValue, with memory effects as specified by VarHandle#weakCompareAndSetRelease.

    expectedValue

    the expected value

    newValue

    the new value

    returns

    true if successful

    Since

    9

  37. final def weakCompareAndSetVolatile(expectedValue: Boolean, newValue: Boolean): Boolean

    Possibly atomically sets the value to newValue if the current value == expectedValue, with memory effects as specified by VarHandle#weakCompareAndSet.

    Possibly atomically sets the value to newValue if the current value == expectedValue, with memory effects as specified by VarHandle#weakCompareAndSet.

    expectedValue

    the expected value

    newValue

    the new value

    returns

    true if successful

    Since

    9

Deprecated Value Members

  1. def weakCompareAndSet(expectedValue: Boolean, newValue: Boolean): Boolean

    Possibly atomically sets the value to newValue if the current value == expectedValue, with memory effects as specified by VarHandle#weakCompareAndSetPlain.

    Possibly atomically sets the value to newValue if the current value == expectedValue, with memory effects as specified by VarHandle#weakCompareAndSetPlain.

    expectedValue

    the expected value

    newValue

    the new value

    returns

    true if successful

    Annotations
    @deprecated
    Deprecated

    (Since version 9)

    See also

    #weakCompareAndSetPlain

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped