scala.concurrent.stm
trait
TSet
[A]
extends AnyRef
Abstract Value Members
-
def
add
(elem: A)(implicit txn: InTxn): Boolean
-
def
contains
(elem: A)(implicit txn: InTxn): Boolean
-
def
foreach
[U]
(f: (A) ⇒ U)(implicit txn: InTxn): Unit
-
def
isEmpty
(implicit txn: InTxn): Boolean
-
def
remove
(elem: A)(implicit txn: InTxn): Boolean
-
def
retain
(p: (A) ⇒ Boolean)(implicit txn: InTxn): TSet.this.type
-
def
single
: View[A]
-
def
size
(implicit txn: InTxn): Int
Concrete Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
++=
(xs: TraversableOnce[A])(implicit txn: InTxn): TSet.this.type
-
def
+=
(x1: A, x2: A, xs: A*)(implicit txn: InTxn): TSet.this.type
-
def
+=
(x: A)(implicit txn: InTxn): TSet.this.type
-
def
--=
(xs: TraversableOnce[A])(implicit txn: InTxn): TSet.this.type
-
def
-=
(x1: A, x2: A, xs: A*)(implicit txn: InTxn): TSet.this.type
-
def
-=
(x: A)(implicit txn: InTxn): TSet.this.type
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
def
apply
(elem: A)(implicit txn: InTxn): Boolean
-
def
asInstanceOf
[T0]
: T0
-
def
clone
(implicit txn: InTxn): TSet[A]
-
def
clone
(): AnyRef
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
finalize
(): Unit
-
def
getClass
(): java.lang.Class[_]
-
def
hashCode
(): Int
-
def
isInstanceOf
[T0]
: Boolean
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
toString
(): String
-
def
update
(elem: A, included: Boolean)(implicit txn: InTxn): Unit
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
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 fromTSettoSetif the current scope is part of an atomic block (seeTSet.asSet).The elements (with type
A) must be immutable, or at least not modified while they are in the set. TheTSetimplementation assumes that it can safely perform equality and hash checks outside a transaction without affecting atomicity.