Class/Object

zio.concurrent

ConcurrentSet

Related Docs: object ConcurrentSet | package concurrent

Permalink

final class ConcurrentSet[A] extends AnyVal

A ConcurrentSet is a Set wrapper over java.util.concurrent.ConcurrentHashMap.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConcurrentSet
  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. def add(x: A): UIO[Boolean]

    Permalink

    Adds a new value.

  5. def addAll(xs: Iterable[A]): UIO[Boolean]

    Permalink

    Adds all new values.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clear: UIO[Unit]

    Permalink

    Removes all elements.

  8. def collectFirst[B](pf: PartialFunction[A, B]): UIO[Option[B]]

    Permalink

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

  9. def contains(x: A): UIO[Boolean]

    Permalink

    Tests whether if the element is in the set.

  10. def containsAll(xs: Iterable[A]): UIO[Boolean]

    Permalink

    Tests if the elements in the collection are a subset of the set.

  11. def exists(p: (A) ⇒ Boolean): UIO[Boolean]

    Permalink

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

  12. def find[B](p: (A) ⇒ Boolean): UIO[Option[A]]

    Permalink

    Retrieves the elements in which predicate is satisfied.

  13. def fold[R, E, S](zero: S)(f: (S, A) ⇒ S): UIO[S]

    Permalink

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

  14. def forall(p: (A) ⇒ Boolean): UIO[Boolean]

    Permalink

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

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

    Permalink
    Definition Classes
    AnyVal → Any
  16. def isEmpty: UIO[Boolean]

    Permalink

    True if there are no elements in the set.

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def remove(x: A): UIO[Boolean]

    Permalink

    Removes the entry for the given value if it is mapped to an existing element.

  19. def removeAll(xs: Iterable[A]): UIO[Boolean]

    Permalink

    Removes all the entries for the given values if they are mapped to an existing element.

  20. def removeIf(p: (A) ⇒ Boolean): UIO[Boolean]

    Permalink

    Removes all elements which satisfy the given predicate.

  21. def retainAll(xs: Iterable[A]): UIO[Boolean]

    Permalink

    Retain all the entries for the given values if they are mapped to an existing element.

  22. def retainIf(p: (A) ⇒ Boolean): UIO[Boolean]

    Permalink

    Removes all elements which do not satisfy the given predicate.

  23. def size: UIO[Int]

    Permalink

    Number of elements in the set.

  24. def toSet: UIO[Set[A]]

    Permalink

    Convert the ConcurrentSet to Set.

  25. def toString(): String

    Permalink
    Definition Classes
    Any
  26. def transform(f: (A) ⇒ A): UIO[Unit]

    Permalink

    Transform all elements of the ConcurrentSet using the given function.

    Transform all elements of the ConcurrentSet using the given function.

    Annotations
    @silent( "JavaConverters" )

Inherited from AnyVal

Inherited from Any

Ungrouped