Class/Object

zio.stm

TMap

Related Docs: object TMap | package stm

Permalink

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. final def contains(k: K): STM[Nothing, Boolean]

    Permalink

    Tests whether or not map contains a key.

  7. final def delete(k: K): STM[Nothing, 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. final def fold[A](zero: A)(op: (A, (K, V)) ⇒ A): STM[Nothing, A]

    Permalink

    Atomically folds using pure function.

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

    Permalink

    Atomically folds using effectful function.

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

    Permalink

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

  14. final def get(k: K): STM[Nothing, Option[V]]

    Permalink

    Retrieves value associated with given key.

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def getOrElse(k: K, default: ⇒ V): STM[Nothing, 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. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def keys: STM[Nothing, List[K]]

    Permalink

    Collects all keys stored in map.

  20. final def merge(k: K, v: V)(f: (V, V) ⇒ V): STM[Nothing, 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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  24. final def put(k: K, v: V): STM[Nothing, Unit]

    Permalink

    Stores new binding into the map.

  25. final def removeIf(p: (K, V) ⇒ Boolean): STM[Nothing, Unit]

    Permalink

    Removes bindings matching predicate.

  26. final def retainIf(p: (K, V) ⇒ Boolean): STM[Nothing, Unit]

    Permalink

    Retains bindings matching predicate.

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

    Permalink
    Definition Classes
    AnyRef
  28. final def toList: STM[Nothing, List[(K, V)]]

    Permalink

    Collects all bindings into a list.

  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def transform(f: (K, V) ⇒ (K, V)): STM[Nothing, Unit]

    Permalink

    Atomically updates all bindings using pure function.

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

    Permalink

    Atomically updates all bindings using effectful function.

  32. final def transformValues(f: (V) ⇒ V): STM[Nothing, Unit]

    Permalink

    Atomically updates all values using pure function.

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

    Permalink

    Atomically updates all values using effectful function.

  34. final def values: STM[Nothing, List[V]]

    Permalink

    Collects all values stored in map.

  35. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped