ConcurrentSet

class ConcurrentSet<Key : Any>(lock: Lock, delegate: ConcurrentMap<Key, Unit>) : MutableSet<Key>

Concurrent set implemented on top of ConcurrentMap

Constructors

Link copied to clipboard
fun <Key : Any> ConcurrentSet(lock: Lock = Lock(), delegate: ConcurrentMap<Key, Unit> = ConcurrentMap(lock))

Functions

Link copied to clipboard
open override fun add(element: Key): Boolean
Link copied to clipboard
open override fun addAll(elements: Collection<Key>): Boolean
Link copied to clipboard
open override fun clear()
Link copied to clipboard
open operator override fun contains(element: Key): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<Key>): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): MutableIterator<Key>
Link copied to clipboard
open override fun remove(element: Key): Boolean
Link copied to clipboard
open override fun removeAll(elements: Collection<Key>): Boolean
Link copied to clipboard
open override fun retainAll(elements: Collection<Key>): Boolean
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
open override val size: Int