Class/Object

zio.concurrent

ConcurrentMap

Related Docs: object ConcurrentMap | package concurrent

Permalink

final class ConcurrentMap[K, V] extends AnyVal

Wrapper over java.util.concurrent.ConcurrentHashMap.

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

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def collectFirst[B](pf: PartialFunction[(K, V), B]): UIO[Option[B]]

    Permalink

    Finds the first element of a map for which the partial function is defined and applies the function to it.

  6. def compute(key: K, remap: (K, V) ⇒ V): UIO[Option[V]]

    Permalink

    Attempts to compute a mapping for the given key and its current mapped value.

  7. def computeIfAbsent(key: K, map: (K) ⇒ V): UIO[V]

    Permalink

    Computes a value of a non-existing key.

  8. def computeIfPresent(key: K, remap: (K, V) ⇒ V): UIO[Option[V]]

    Permalink

    Attempts to compute a new mapping of an existing key.

  9. def exists(p: (K, V) ⇒ Boolean): UIO[Boolean]

    Permalink

    Tests whether a given predicate holds true for at least one element in a map.

  10. def fold[S](zero: S)(f: (S, (K, V)) ⇒ S): UIO[S]

    Permalink

    Folds the elements of a map using the given binary operator.

  11. def forall(p: (K, V) ⇒ Boolean): UIO[Boolean]

    Permalink

    Tests whether a predicate is satisfied by all elements of a map.

  12. def get(key: K): UIO[Option[V]]

    Permalink

    Retrieves the value associated with the given key.

  13. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def put(key: K, value: V): UIO[Option[V]]

    Permalink

    Adds a new key-value pair and optionally returns previously bound value.

  16. def putAll(keyValues: (K, V)*): UIO[Unit]

    Permalink

    Adds all new key-value pairs

  17. def putIfAbsent(key: K, value: V): UIO[Option[V]]

    Permalink

    Adds a new key-value pair, unless the key is already bound to some other value.

  18. def remove(key: K, value: V): UIO[Boolean]

    Permalink

    Removes the entry for the given key if it is mapped to a given value.

  19. def remove(key: K): UIO[Option[V]]

    Permalink

    Removes the entry for the given key, optionally returning value associated with it.

  20. def removeIf(p: (K, V) ⇒ Boolean): UIO[Unit]

    Permalink

    Removes all elements which do not satisfy the given predicate.

  21. def replace(key: K, oldValue: V, newValue: V): UIO[Boolean]

    Permalink

    Replaces the entry for the given key only if it was previously mapped to a given value.

  22. def replace(key: K, value: V): UIO[Option[V]]

    Permalink

    Replaces the entry for the given key only if it is mapped to some value.

  23. def retainIf(p: (K, V) ⇒ Boolean): UIO[Unit]

    Permalink

    Removes all elements which do not satisfy the given predicate.

  24. def toChunk: UIO[Chunk[(K, V)]]

    Permalink

    Collects all entries into a chunk.

  25. def toList: UIO[List[(K, V)]]

    Permalink

    Collects all entries into a list.

  26. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped