Packages

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
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def contains(k: K): USTM[Boolean]

    Tests whether or not map contains a key.

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

    Removes binding for given key.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def fold[A](zero: A)(op: (A, (K, V)) ⇒ A): USTM[A]

    Atomically folds using a pure function.

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

    Atomically folds using a transactional function.

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

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

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

    Retrieves value associated with given key.

  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def getOrElse(k: K, default: ⇒ V): USTM[V]

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

  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def isEmpty: USTM[Boolean]

    Tests if the map is empty or not

  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def keys: USTM[List[K]]

    Collects all keys stored in map.

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

  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. def put(k: K, v: V): USTM[Unit]

    Stores new binding into the map.

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

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

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

    Removes bindings matching predicate.

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

    Retains bindings matching predicate.

  29. val size: USTM[Int]

    Returns the number of bindings.

  30. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  31. def toChunk: USTM[Chunk[(K, V)]]

    Collects all bindings into a chunk.

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

    Collects all bindings into a list.

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

    Collects all bindings into a map.

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

    Atomically updates all bindings using a pure function.

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

    Atomically updates all bindings using a transactional function.

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

    Atomically updates all values using a pure function.

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

    Atomically updates all values using a transactional function.

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

    Collects all values stored in map.

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

Inherited from AnyRef

Inherited from Any

Ungrouped