Class/Object

zio.stm

TSet

Related Docs: object TSet | package stm

Permalink

final class TSet[A] extends AnyVal

Transactional set implemented on top of TMap.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TSet
  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 contains(a: A): USTM[Boolean]

    Permalink

    Tests whether or not set contains an element.

  6. def delete(a: A): USTM[Unit]

    Permalink

    Removes a single element from the set.

  7. def deleteAll(as: Iterable[A]): USTM[Unit]

    Permalink

    Removes elements from the set.

  8. def diff(other: TSet[A]): USTM[Unit]

    Permalink

    Atomically transforms the set into the difference of itself and the provided set.

  9. def fold[B](zero: B)(op: (B, A) ⇒ B): USTM[B]

    Permalink

    Atomically folds using a pure function.

  10. def foldSTM[B, E](zero: B)(op: (B, A) ⇒ STM[E, B]): STM[E, B]

    Permalink

    Atomically folds using a transactional function.

  11. def foreach[E](f: (A) ⇒ STM[E, Unit]): STM[E, Unit]

    Permalink

    Atomically performs transactional-effect for each element in set.

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

    Permalink
    Definition Classes
    AnyVal → Any
  13. def intersect(other: TSet[A]): USTM[Unit]

    Permalink

    Atomically transforms the set into the intersection of itself and the provided set.

  14. def isEmpty: USTM[Boolean]

    Permalink

    Tests if the set is empty or not

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def put(a: A): USTM[Unit]

    Permalink

    Stores new element in the set.

  17. def removeIf(p: (A) ⇒ Boolean): USTM[Unit]

    Permalink

    Removes elements matching predicate.

  18. def retainIf(p: (A) ⇒ Boolean): USTM[Unit]

    Permalink

    Retains elements matching predicate.

  19. def size: USTM[Int]

    Permalink

    Returns the set's cardinality.

  20. def takeFirst[B](pf: PartialFunction[A, B]): USTM[B]

    Permalink

    Takes the first matching value, or retries until there is one.

  21. def takeFirstSTM[R, E, B](pf: (A) ⇒ ZSTM[R, Option[E], B]): ZSTM[R, E, B]

    Permalink
  22. def takeSome[B](pf: PartialFunction[A, B]): USTM[NonEmptyChunk[B]]

    Permalink

    Takes all matching values, or retries until there is at least one.

  23. def takeSomeSTM[R, E, B](pf: (A) ⇒ ZSTM[R, Option[E], B]): ZSTM[R, E, NonEmptyChunk[B]]

    Permalink

    Takes all matching values, or retries until there is at least one.

  24. def toList: USTM[List[A]]

    Permalink

    Collects all elements into a list.

  25. def toSet: USTM[Set[A]]

    Permalink

    Collects all elements into a set.

  26. def toString(): String

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

    Permalink

    Atomically updates all elements using a pure function.

  28. def transformSTM[E](f: (A) ⇒ STM[E, A]): STM[E, Unit]

    Permalink

    Atomically updates all elements using a transactional function.

  29. def union(other: TSet[A]): USTM[Unit]

    Permalink

    Atomically transforms the set into the union of itself and the provided set.

Deprecated Value Members

  1. def foldM[B, E](zero: B)(op: (B, A) ⇒ STM[E, B]): STM[E, B]

    Permalink

    Atomically folds using a transactional function.

    Atomically folds using a transactional function.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use foldSTM

  2. def transformM[E](f: (A) ⇒ STM[E, A]): STM[E, Unit]

    Permalink

    Atomically updates all elements using a transactional function.

    Atomically updates all elements using a transactional function.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use transformSTM

Inherited from AnyVal

Inherited from Any

Ungrouped