final class ConcurrentSet[A] extends AnyVal
A ConcurrentSet
is a Set wrapper over
java.util.concurrent.ConcurrentHashMap
.
- Alphabetic
- By Inheritance
- ConcurrentSet
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
def
add(x: A): UIO[Boolean]
Adds a new value.
-
def
addAll(xs: Iterable[A]): UIO[Boolean]
Adds all new values.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clear: UIO[Unit]
Removes all elements.
-
def
collectFirst[B](pf: PartialFunction[A, B]): UIO[Option[B]]
Finds the first element of a set for which the partial function is defined and applies the function to it.
-
def
contains(x: A): UIO[Boolean]
Tests whether if the element is in the set.
-
def
containsAll(xs: Iterable[A]): UIO[Boolean]
Tests if the elements in the collection are a subset of the set.
-
def
exists(p: (A) ⇒ Boolean): UIO[Boolean]
Tests whether a given predicate holds true for at least one element in the set.
-
def
find[B](p: (A) ⇒ Boolean): UIO[Option[A]]
Retrieves the elements in which predicate is satisfied.
-
def
fold[R, E, S](zero: S)(f: (S, A) ⇒ S): UIO[S]
Folds the elements of a set using the given binary operator.
-
def
forall(p: (A) ⇒ Boolean): UIO[Boolean]
Tests whether a predicate is satisfied by all elements of a set.
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
isEmpty: UIO[Boolean]
True if there are no elements in the set.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
remove(x: A): UIO[Boolean]
Removes the entry for the given value if it is mapped to an existing element.
-
def
removeAll(xs: Iterable[A]): UIO[Boolean]
Removes all the entries for the given values if they are mapped to an existing element.
-
def
removeIf(p: (A) ⇒ Boolean): UIO[Boolean]
Removes all elements which satisfy the given predicate.
-
def
retainAll(xs: Iterable[A]): UIO[Boolean]
Retain all the entries for the given values if they are mapped to an existing element.
-
def
retainIf(p: (A) ⇒ Boolean): UIO[Boolean]
Removes all elements which do not satisfy the given predicate.
-
def
size: UIO[Int]
Number of elements in the set.
-
def
toSet: UIO[Set[A]]
Create a concurrent set from a set.
-
def
toString(): String
- Definition Classes
- Any
-
def
transform(f: (A) ⇒ A): UIO[Unit]
Create a concurrent set from a collection.
Create a concurrent set from a collection.
- Annotations
- @silent( "JavaConverters" )