trait
TSet[A] extends AnyRef
Abstract Value Members
-
abstract
def
add(elem: A)(implicit txn: InTxn): Boolean
-
abstract
def
contains(elem: A)(implicit txn: InTxn): Boolean
-
abstract
def
foreach[U](f: (A) ⇒ U)(implicit txn: InTxn): Unit
-
abstract
def
isEmpty(implicit txn: InTxn): Boolean
-
abstract
def
remove(elem: A)(implicit txn: InTxn): Boolean
-
abstract
def
retain(p: (A) ⇒ Boolean)(implicit txn: InTxn): TSet.this.type
-
abstract
def
single: View[A]
-
abstract
def
size(implicit txn: InTxn): Int
Concrete Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
-
def
+=(x1: A, x2: A, xs: A*)(implicit txn: InTxn): TSet.this.type
-
def
+=(x: 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
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
def
apply(elem: A)(implicit txn: InTxn): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(implicit txn: InTxn): TSet[A]
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
def
update(elem: A, included: Boolean)(implicit txn: InTxn): Unit
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
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.