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. TSet
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

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

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

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

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

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

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

  7. abstract 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.

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

Concrete 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. 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. final def ==(arg0: AnyRef): Boolean

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

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

  13. final def asInstanceOf[T0]: T0

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

  15. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  26. def toString(): String

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

  28. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped