AbstractSet

abstract class AbstractSet<out E> : AbstractCollection<E> , Set<E>

Provides a skeletal implementation of the read-only Set interface.

This class is intended to help implementing read-only sets so it doesn't support concurrent modification tracking.

Since Kotlin

1.1

Parameters

E

the type of elements contained in the set. The set is covariant in its element type.

Functions

contains
Link copied to clipboard
open operator override fun contains(element: E): Boolean
containsAll
Link copied to clipboard
open override fun containsAll(elements: Collection<E>): Boolean
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares this set with other set instance with the unordered structural equality.

hashCode
Link copied to clipboard
open override fun hashCode(): Int

Returns the hash code value for this set.

isEmpty
Link copied to clipboard
open override fun isEmpty(): Boolean
iterator
Link copied to clipboard
abstract operator override fun iterator(): Iterator<E>
toString
Link copied to clipboard
open override fun toString(): String

Properties

size
Link copied to clipboard
abstract override val size: Int