final class TMap[K, V] extends AnyRef
- Alphabetic
- By Inheritance
- TMap
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
contains(k: K): USTM[Boolean]
Tests whether or not map contains a key.
-
def
delete(k: K): USTM[Unit]
Removes binding for given key.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fold[A](zero: A)(op: (A, (K, V)) ⇒ A): USTM[A]
Atomically folds using a pure function.
-
def
foldM[A, E](zero: A)(op: (A, (K, V)) ⇒ STM[E, A]): STM[E, A]
Atomically folds using a transactional function.
-
def
foreach[E](f: (K, V) ⇒ STM[E, Unit]): STM[E, Unit]
Atomically performs transactional-effect for each binding present in map.
-
def
get(k: K): USTM[Option[V]]
Retrieves value associated with given key.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getOrElse(k: K, default: ⇒ V): USTM[V]
Retrieves value associated with given key or default value, in case the key isn't present.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isEmpty: USTM[Boolean]
Tests if the map is empty or not
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
keys: USTM[List[K]]
Collects all keys stored in map.
-
def
merge(k: K, v: V)(f: (V, V) ⇒ V): USTM[V]
If the key
k
is not already associated with a value, stores the provided value, otherwise merge the existing value with the new one using functionf
and store the result -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
put(k: K, v: V): USTM[Unit]
Stores new binding into the map.
-
def
putIfAbsent(k: K, v: V): USTM[Unit]
Stores new binding in the map if it does not already exist.
-
def
removeIf(p: (K, V) ⇒ Boolean): USTM[Unit]
Removes bindings matching predicate.
-
def
retainIf(p: (K, V) ⇒ Boolean): USTM[Unit]
Retains bindings matching predicate.
-
val
size: USTM[Int]
Returns the number of bindings.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toChunk: USTM[Chunk[(K, V)]]
Collects all bindings into a chunk.
-
def
toList: USTM[List[(K, V)]]
Collects all bindings into a list.
-
def
toMap: USTM[Map[K, V]]
Collects all bindings into a map.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
transform(f: (K, V) ⇒ (K, V)): USTM[Unit]
Atomically updates all bindings using a pure function.
-
def
transformM[E](f: (K, V) ⇒ STM[E, (K, V)]): STM[E, Unit]
Atomically updates all bindings using a transactional function.
-
def
transformValues(f: (V) ⇒ V): USTM[Unit]
Atomically updates all values using a pure function.
-
def
transformValuesM[E](f: (V) ⇒ STM[E, V]): STM[E, Unit]
Atomically updates all values using a transactional function.
-
def
values: USTM[List[V]]
Collects all values stored in map.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()