scala.concurrent.stm

TSet

trait TSet [A] extends AnyRef

A transactional set implementation that requires that all of its set-like operations be called from inside an atomic block. Rather than extending Set, an implicit conversion is provided from TSet to Set if the current scope is part of an atomic block (see TSet.asSet).

The elements (with type A) must be immutable, or at least not modified while they are in the set. The TSet implementation assumes that it can safely perform equality and hash checks outside a transaction without affecting atomicity.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. TSet
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. def add (elem: A)(implicit txn: InTxn): Boolean

    Attributes
    abstract
  2. def contains (elem: A)(implicit txn: InTxn): Boolean

    Attributes
    abstract
  3. def foreach [U] (f: (A) ⇒ U)(implicit txn: InTxn): Unit

    Attributes
    abstract
  4. def isEmpty (implicit txn: InTxn): Boolean

    Attributes
    abstract
  5. def remove (elem: A)(implicit txn: InTxn): Boolean

    Attributes
    abstract
  6. def retain (p: (A) ⇒ Boolean)(implicit txn: InTxn): TSet.this.type

    Attributes
    abstract
  7. def single : View[A]

    Returns an instance that provides transactional set functionality without requiring that operations be performed inside the static scope of an atomic block.

    Returns an instance that provides transactional set functionality without requiring that operations be performed inside the static scope of an atomic block.

    Attributes
    abstract
  8. def size (implicit txn: InTxn): Int

    Attributes
    abstract

Concrete Value Members

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def ++= (xs: TraversableOnce[A])(implicit txn: InTxn): TSet.this.type

  5. def += (x1: A, x2: A, xs: A*)(implicit txn: InTxn): TSet.this.type

  6. def += (x: A)(implicit txn: InTxn): TSet.this.type

  7. def --= (xs: TraversableOnce[A])(implicit txn: InTxn): TSet.this.type

  8. def -= (x1: A, x2: A, xs: A*)(implicit txn: InTxn): TSet.this.type

  9. def -= (x: A)(implicit txn: InTxn): TSet.this.type

  10. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  12. def apply (elem: A)(implicit txn: InTxn): Boolean

  13. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  14. def clone (implicit txn: InTxn): TSet[A]

  15. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  17. def equals (arg0: Any): Boolean

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  20. def hashCode (): Int

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  23. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  24. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  25. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  26. def toString (): String

    Definition Classes
    AnyRef → Any
  27. def update (elem: A, included: Boolean)(implicit txn: InTxn): Unit

  28. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any