Class/Object

zio.stm

TMap

Related Docs: object TMap | package stm

Permalink

final class TMap[K, V] extends AnyRef

Transactional map implemented on top of TRef and TArray. Resolves conflicts via chaining.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TMap
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def contains(k: K): USTM[Boolean]

    Permalink

    Tests whether or not map contains a key.

  7. def delete(k: K): USTM[Unit]

    Permalink

    Removes binding for given key.

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def fold[A](zero: A)(op: (A, (K, V)) ⇒ A): USTM[A]

    Permalink

    Atomically folds using a pure function.

  12. def foldM[A, E](zero: A)(op: (A, (K, V)) ⇒ STM[E, A]): STM[E, A]

    Permalink

    Atomically folds using a transactional function.

  13. def foreach[E](f: (K, V) ⇒ STM[E, Unit]): STM[E, Unit]

    Permalink

    Atomically performs transactional-effect for each binding present in map.

  14. def get(k: K): USTM[Option[V]]

    Permalink

    Retrieves value associated with given key.

  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def getOrElse(k: K, default: ⇒ V): USTM[V]

    Permalink

    Retrieves value associated with given key or default value, in case the key isn't present.

  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. def isEmpty: USTM[Boolean]

    Permalink

    Tests if the map is empty or not

  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def keys: USTM[List[K]]

    Permalink

    Collects all keys stored in map.

  21. def merge(k: K, v: V)(f: (V, V) ⇒ V): USTM[V]

    Permalink

    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 function f and store the result

  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def put(k: K, v: V): USTM[Unit]

    Permalink

    Stores new binding into the map.

  26. def putIfAbsent(k: K, v: V): USTM[Unit]

    Permalink

    Stores new binding in the map if it does not already exist.

  27. def removeIf(p: (K, V) ⇒ Boolean): USTM[Unit]

    Permalink

    Removes bindings matching predicate.

  28. def retainIf(p: (K, V) ⇒ Boolean): USTM[Unit]

    Permalink

    Retains bindings matching predicate.

  29. val size: USTM[Int]

    Permalink

    Returns the number of bindings.

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toChunk: USTM[Chunk[(K, V)]]

    Permalink

    Collects all bindings into a chunk.

  32. def toList: USTM[List[(K, V)]]

    Permalink

    Collects all bindings into a list.

  33. def toMap: USTM[Map[K, V]]

    Permalink

    Collects all bindings into a map.

  34. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  35. def transform(f: (K, V) ⇒ (K, V)): USTM[Unit]

    Permalink

    Atomically updates all bindings using a pure function.

  36. def transformM[E](f: (K, V) ⇒ STM[E, (K, V)]): STM[E, Unit]

    Permalink

    Atomically updates all bindings using a transactional function.

  37. def transformValues(f: (V) ⇒ V): USTM[Unit]

    Permalink

    Atomically updates all values using a pure function.

  38. def transformValuesM[E](f: (V) ⇒ STM[E, V]): STM[E, Unit]

    Permalink

    Atomically updates all values using a transactional function.

  39. def values: USTM[List[V]]

    Permalink

    Collects all values stored in map.

  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped