ox.cads.atomic

AtomicRefAnyPair

class AtomicRefAnyPair[A <: AnyRef, B] extends AtomicPair[A, B]

Each object of this class encapsulates an (A,B) pair, but allows various atomic operations upon that pair. The component is a reference object: comparisons in CAS operations use reference equality (eq) on the A component, but value equality (==) on the B component.

Linear Supertypes
AtomicPair[A, B], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AtomicRefAnyPair
  2. AtomicPair
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AtomicRefAnyPair(a: A, b: B)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def compare(pair: (A, B), a: A, b: B): Boolean

    Does pair equal (a, b), according to the notion of equality we're using in compareAndSet? The definition is based on compareA and compareB.

    Does pair equal (a, b), according to the notion of equality we're using in compareAndSet? The definition is based on compareA and compareB.

    Definition Classes
    AtomicPair
    Annotations
    @inline()
  9. def compareA(a1: A, a2: A): Boolean

    Notion of equality used on the first (A) component in compareAndSet operations.

    Notion of equality used on the first (A) component in compareAndSet operations. Here the notion is reference equality (eq).

    Definition Classes
    AtomicRefAnyPairAtomicPair
    Annotations
    @inline()
  10. def compareAndSet(expected: (A, B), newv: (A, B)): Boolean

    If the current value is equal to expected then update to new and return true; otherwise return false.

    If the current value is equal to expected then update to new and return true; otherwise return false.

    Definition Classes
    AtomicPair
  11. def compareAndSet(expectedA: A, newA: A, expectedB: B, newB: B): Boolean

    If the two components are equal to expectedA and expectedB (according to compare) then update them to newA and newB and return true; otherwise return false.

    If the two components are equal to expectedA and expectedB (according to compare) then update them to newA and newB and return true; otherwise return false.

    Definition Classes
    AtomicPair
  12. def compareAndSetFirst(expectedA: A, newA: A): Boolean

    If the first component equals expectedA (according to compareA) then update it to newA and return true; otherwise return false.

    If the first component equals expectedA (according to compareA) then update it to newA and return true; otherwise return false.

    Definition Classes
    AtomicPair
  13. def compareAndSetSecond(expectedB: B, newB: B): Boolean

    If the second component equals expectedB (according to compareB) then update it to newB and return true; otherwise return false.

    If the second component equals expectedB (according to compareB) then update it to newB and return true; otherwise return false.

    Definition Classes
    AtomicPair
  14. def compareB(b1: B, b2: B): Boolean

    Notion of equality used on the second (B) component in compareAndSet operations.

    Notion of equality used on the second (B) component in compareAndSet operations. Here the notion is value equality (==), but this is overwritten in subclasses.

    Definition Classes
    AtomicPair
    Annotations
    @inline()
  15. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. def get: (A, B)

    Get the value of the pair

    Get the value of the pair

    Definition Classes
    AtomicPair
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def getFirst: A

    Get the first element of the pair

    Get the first element of the pair

    Definition Classes
    AtomicPair
  21. def getSecond: B

    Get the second element of the pair

    Get the second element of the pair

    Definition Classes
    AtomicPair
  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. def set(pair: (A, B)): Unit

    Set the value of the pair

    Set the value of the pair

    Definition Classes
    AtomicPair
  28. def set(a: A, b: B): Unit

    Set the value of the pair

    Set the value of the pair

    Definition Classes
    AtomicPair
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. def toString(): String

    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AtomicPair[A, B]

Inherited from AnyRef

Inherited from Any

Ungrouped