Class/Object

org.sincron.atomic

AtomicDouble

Related Docs: object AtomicDouble | package atomic

Permalink

final class AtomicDouble extends AtomicNumber[Double]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AtomicDouble
  2. AtomicNumber
  3. Atomic
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final macro def +=(value: Double): Unit

    Permalink

    Subtracts from the atomic number the given value.

    Subtracts from the atomic number the given value. Alias for subtract.

    Definition Classes
    AtomicNumber
  4. final macro def -=(value: Double): Unit

    Permalink

    Adds to the atomic number the given value.

    Adds to the atomic number the given value. Alias for add.

    Definition Classes
    AtomicNumber
  5. final macro def :=(value: Double): Unit

    Permalink

    Alias for set.

    Alias for set. Updates the current value.

    value

    will be the new value returned by get()

    Definition Classes
    Atomic
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def add(v: Double): Unit

    Permalink

    Adds to the atomic number the given value.

    Adds to the atomic number the given value.

    Definition Classes
    AtomicDoubleAtomicNumber
  8. def addAndGet(v: Double): Double

    Permalink

    Adds to the atomic number and returns the result.

    Adds to the atomic number and returns the result.

    Definition Classes
    AtomicDoubleAtomicNumber
  9. final macro def apply(): Double

    Permalink

    Get the current value persisted by this Atomic, an alias for get().

    Get the current value persisted by this Atomic, an alias for get().

    Definition Classes
    Atomic
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def compareAndSet(expect: Double, update: Double): Boolean

    Permalink

    Does a compare-and-set operation on the current value.

    Does a compare-and-set operation on the current value. For more info, checkout the related Compare-and-swap Wikipedia page.

    It's an atomic, worry free operation.

    expect

    is the value you expect to be persisted when the operation happens

    update

    will be the new value, should the check for expect succeeds

    returns

    either true in case the operation succeeded or false otherwise

    Definition Classes
    AtomicDoubleAtomic
  13. def decrement(v: Int = 1): Unit

    Permalink

    Decrements the atomic number with the given integer.

    Decrements the atomic number with the given integer.

    Definition Classes
    AtomicDoubleAtomicNumber
  14. def decrementAndGet(v: Int = 1): Double

    Permalink

    Decrements the atomic number and returns the result.

    Decrements the atomic number and returns the result.

    Definition Classes
    AtomicDoubleAtomicNumber
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def get: Double

    Permalink

    Get the current value persisted by this Atomic.

    Get the current value persisted by this Atomic.

    Definition Classes
    AtomicDoubleAtomic
  19. def getAndAdd(v: Double): Double

    Permalink

    Adds to the the atomic number and returns the value before the update.

    Adds to the the atomic number and returns the value before the update.

    Definition Classes
    AtomicDoubleAtomicNumber
  20. def getAndDecrement(v: Int = 1): Double

    Permalink

    Decrements the atomic number and returns the value before the update.

    Decrements the atomic number and returns the value before the update.

    Definition Classes
    AtomicDoubleAtomicNumber
  21. def getAndIncrement(v: Int = 1): Double

    Permalink

    Increments the atomic number and returns the value before the update.

    Increments the atomic number and returns the value before the update.

    Definition Classes
    AtomicDoubleAtomicNumber
  22. def getAndSet(update: Double): Double

    Permalink

    Sets the persisted value to update and returns the old value that was in place.

    Sets the persisted value to update and returns the old value that was in place. It's an atomic, worry free operation.

    Definition Classes
    AtomicDoubleAtomic
  23. def getAndSubtract(v: Double): Double

    Permalink

    Subtracts from the atomic number and returns the value before the update.

    Subtracts from the atomic number and returns the value before the update.

    Definition Classes
    AtomicDoubleAtomicNumber
  24. final macro def getAndTransform(cb: (Double) ⇒ Double): Double

    Permalink

    Abstracts over compareAndSet.

    Abstracts over compareAndSet. You specify a transformation by specifying a callback to be executed, a callback that transforms the current value. This method will loop until it will succeed in replacing the current value with the one produced by the given callback.

    Note that the callback will be executed on each iteration of the loop, so it can be called multiple times - don't do destructive I/O or operations that mutate global state in it.

    cb

    is a callback that receives the current value as input and returns the update which is the new value that should be persisted

    returns

    the old value, just prior to when the successful update happened

    Definition Classes
    Atomic
  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. def increment(v: Int = 1): Unit

    Permalink

    Increment with the given integer

    Increment with the given integer

    Definition Classes
    AtomicDoubleAtomicNumber
  28. def incrementAndGet(v: Int = 1): Double

    Permalink

    Increments the atomic number and returns the result.

    Increments the atomic number and returns the result.

    Definition Classes
    AtomicDoubleAtomicNumber
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. final macro def lazySet(value: Double): Unit

    Permalink

    Eventually sets to the given value.

    Eventually sets to the given value. Has weaker visibility guarantees than the normal set().

    Definition Classes
    Atomic
  31. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. def set(update: Double): Unit

    Permalink

    Updates the current value.

    Updates the current value.

    update

    will be the new value returned by get()

    Definition Classes
    AtomicDoubleAtomic
  35. def subtract(v: Double): Unit

    Permalink

    Subtracts from the atomic number the given value.

    Subtracts from the atomic number the given value.

    Definition Classes
    AtomicDoubleAtomicNumber
  36. def subtractAndGet(v: Double): Double

    Permalink

    Subtracts from the atomic number and returns the result.

    Subtracts from the atomic number and returns the result.

    Definition Classes
    AtomicDoubleAtomicNumber
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  39. final macro def transform(cb: (Double) ⇒ Double): Unit

    Permalink

    Abstracts over compareAndSet.

    Abstracts over compareAndSet. You specify a transformation by specifying a callback to be executed, a callback that transforms the current value. This method will loop until it will succeed in replacing the current value with the one produced by the given callback.

    Note that the callback will be executed on each iteration of the loop, so it can be called multiple times - don't do destructive I/O or operations that mutate global state in it.

    cb

    is a callback that receives the current value as input and returns the update which is the new value that should be persisted

    Definition Classes
    Atomic
  40. final macro def transformAndExtract[U](cb: (Double) ⇒ (U, Double)): U

    Permalink

    Abstracts over compareAndSet.

    Abstracts over compareAndSet. You specify a transformation by specifying a callback to be executed, a callback that transforms the current value. This method will loop until it will succeed in replacing the current value with the one produced by your callback.

    Note that the callback will be executed on each iteration of the loop, so it can be called multiple times - don't do destructive I/O or operations that mutate global state in it.

    cb

    is a callback that receives the current value as input and returns a tuple that specifies the update + what should this method return when the operation succeeds.

    returns

    whatever was specified by your callback, once the operation succeeds

    Definition Classes
    Atomic
  41. final macro def transformAndGet(cb: (Double) ⇒ Double): Double

    Permalink

    Abstracts over compareAndSet.

    Abstracts over compareAndSet. You specify a transformation by specifying a callback to be executed, a callback that transforms the current value. This method will loop until it will succeed in replacing the current value with the one produced by the given callback.

    Note that the callback will be executed on each iteration of the loop, so it can be called multiple times - don't do destructive I/O or operations that mutate global state in it.

    cb

    is a callback that receives the current value as input and returns the update which is the new value that should be persisted

    returns

    whatever the update is, after the operation succeeds

    Definition Classes
    Atomic
  42. final macro def update(value: Double): Unit

    Permalink

    Alias for set.

    Alias for set. Updates the current value.

    value

    will be the new value returned by get()

    Definition Classes
    Atomic
  43. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AtomicNumber[Double]

Inherited from Atomic[Double]

Inherited from AnyRef

Inherited from Any

Ungrouped