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.
-
def
deleteAll(ks: Iterable[K]): USTM[Unit]
Deletes all entries associated with the specified keys.
-
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
find[A](pf: PartialFunction[(K, V), A]): USTM[Option[A]]
Finds the key/value pair matching the specified predicate, and uses the provided function to extract a value out of it.
-
def
findAll[A](pf: PartialFunction[(K, V), A]): USTM[Chunk[A]]
Finds all the key/value pairs matching the specified predicate, and uses the provided function to extract values out them.
-
def
findAllSTM[R, E, A](pf: (K, V) ⇒ ZSTM[R, Option[E], A]): ZSTM[R, E, Chunk[A]]
Finds all the key/value pairs matching the specified predicate, and uses the provided effectful function to extract values out of them..
-
def
findSTM[R, E, A](f: (K, V) ⇒ ZSTM[R, Option[E], A]): ZSTM[R, E, Option[A]]
Finds the key/value pair matching the specified predicate, and uses the provided effectful function to extract a value out of it.
-
def
fold[A](zero: A)(op: (A, (K, V)) ⇒ A): USTM[A]
Atomically folds using a pure function.
-
def
foldSTM[R, E, A](zero: A)(op: (A, (K, V)) ⇒ ZSTM[R, E, A]): ZSTM[R, E, A]
Atomically folds using a transactional function.
-
def
foreach[R, E](f: (K, V) ⇒ ZSTM[R, E, Unit]): ZSTM[R, 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[Chunk[(K, V)]]
Removes bindings matching predicate and returns the removed entries.
-
def
removeIfDiscard(p: (K, V) ⇒ Boolean): USTM[Unit]
Removes bindings matching predicate.
-
def
retainIf(p: (K, V) ⇒ Boolean): USTM[Chunk[(K, V)]]
Retains bindings matching predicate and returns removed bindings.
-
def
retainIfDiscard(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
takeFirst[A](pf: PartialFunction[(K, V), A]): USTM[A]
Takes the first matching value, or retries until there is one.
- def takeFirstSTM[R, E, A](pf: (K, V) ⇒ ZSTM[R, Option[E], A]): ZSTM[R, E, A]
-
def
takeSome[A](pf: PartialFunction[(K, V), A]): USTM[NonEmptyChunk[A]]
Takes all matching values, or retries until there is at least one.
-
def
takeSomeSTM[R, E, A](pf: (K, V) ⇒ ZSTM[R, Option[E], A]): ZSTM[R, E, NonEmptyChunk[A]]
Takes all matching values, or retries until there is at least one.
-
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
transformSTM[R, E](f: (K, V) ⇒ ZSTM[R, E, (K, V)]): ZSTM[R, 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
transformValuesSTM[R, E](f: (V) ⇒ ZSTM[R, E, V]): ZSTM[R, E, Unit]
Atomically updates all values using a transactional function.
-
def
updateWith(k: K)(f: (Option[V]) ⇒ Option[V]): USTM[Option[V]]
Updates the mapping for the specified key with the specified function, which takes the current value of the key as an input, if it exists, and either returns
Some
with a new value to indicate to update the value in the map orNone
to remove the value from the map.Updates the mapping for the specified key with the specified function, which takes the current value of the key as an input, if it exists, and either returns
Some
with a new value to indicate to update the value in the map orNone
to remove the value from the map. ReturnsSome
with the updated value orNone
if the value was removed from the map. -
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()