ConcurrentSet

class ConcurrentSet<Key : Any> : MutableSet<Key>

Concurrent set implemented on top of ConcurrentMap

Constructors

<init>

ConcurrentSet(
    lock: Lock = Lock(),
    delegate: ConcurrentMap<Key, Unit> = ConcurrentMap(lock))

Concurrent set implemented on top of ConcurrentMap

Properties

size

val size: Int

Functions

add

fun add(element: Key): Boolean

addAll

fun addAll(elements: Collection<Key>): Boolean

clear

fun clear(): Unit

contains

fun contains(element: Key): Boolean

containsAll

fun containsAll(elements: Collection<Key>): Boolean

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

isEmpty

fun isEmpty(): Boolean

iterator

fun iterator(): MutableIterator<Key>

remove

fun remove(element: Key): Boolean

removeAll

fun removeAll(elements: Collection<Key>): Boolean

retainAll

fun retainAll(elements: Collection<Key>): Boolean

toString

fun toString(): String