AbstractCollection

abstract class AbstractCollection<out E> : Collection<E>

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

Since Kotlin

1.1

Parameters

E

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

Functions

contains
Link copied to clipboard
open operator override fun contains(element: @UnsafeVariance E): Boolean
containsAll
Link copied to clipboard
open override fun containsAll(elements: Collection<@UnsafeVariance E>): Boolean
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

Inheritors

AbstractList
Link copied to clipboard
AbstractSet
Link copied to clipboard
AbstractMutableCollection
Link copied to clipboard