Packages

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. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def collectFirst[B](pf: PartialFunction[(K, V), B]): UIO[Option[B]]

    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]]

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

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

    Computes a value of a non-existing key.

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

    Attempts to compute a new mapping of an existing key.

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

    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]

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

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

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

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

    Retrieves the value associated with the given key.

  13. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def put(key: K, value: V): UIO[Option[V]]

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

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

    Adds all new key-value pairs

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

    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]

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

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

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

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

    Removes all elements which do not satisfy the given predicate.

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

    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]]

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

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

    Removes all elements which do not satisfy the given predicate.

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

    Collects all entries into a chunk.

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

    Collects all entries into a list.

  26. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped