trait
TMap[A, B] extends AnyRef
Abstract Value Members
-
abstract
def
apply(key: A)(implicit txn: InTxn): B
-
abstract
def
contains(key: A)(implicit txn: InTxn): Boolean
-
abstract
def
foreach[U](f: ((A, B)) ⇒ U)(implicit txn: InTxn): Unit
-
abstract
def
get(key: A)(implicit txn: InTxn): Option[B]
-
abstract
def
isEmpty(implicit txn: InTxn): Boolean
-
abstract
def
put(key: A, value: B)(implicit txn: InTxn): Option[B]
-
abstract
def
remove(key: A)(implicit txn: InTxn): Option[B]
-
abstract
def
retain(p: (A, B) ⇒ Boolean)(implicit txn: InTxn): TMap.this.type
-
abstract
def
single: View[A, B]
-
abstract
def
size(implicit txn: InTxn): Int
-
abstract
def
transform(f: (A, B) ⇒ B)(implicit txn: InTxn): TMap.this.type
Concrete Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
++=(kvs: TraversableOnce[(A, B)])(implicit txn: InTxn): TMap.this.type
-
def
+=(kv1: (A, B), kv2: (A, B), kvs: (A, B)*)(implicit txn: InTxn): TMap.this.type
-
def
+=(kv: (A, B))(implicit txn: InTxn): TMap.this.type
-
def
--=(ks: TraversableOnce[A])(implicit txn: InTxn): TMap.this.type
-
def
-=(k1: A, k2: A, ks: A*)(implicit txn: InTxn): TMap.this.type
-
def
-=(k: A)(implicit txn: InTxn): TMap.this.type
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(implicit txn: InTxn): TMap[A, B]
-
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(key: A, value: B)(implicit txn: InTxn): Unit
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
A transactional map implementation that requires that all of its map-like operations be called from inside an atomic block. Rather than extending
Map
, an implicit conversion is provided fromTMap
toMap
if the current scope is part of an atomic block (seeTMap.asMap
).The keys (with type
A
) must be immutable, or at least not modified while they are in the map. TheTMap
implementation assumes that it can safely perform key equality and hash checks outside a transaction without affecting atomicity.