KtCollection<T> class

A generic collection of elements. Methods in this interface support only read-only access to the collection; read/write access is supported through the KtMutableCollection interface. @param E the type of elements contained in the collection. The collection is covariant on its element type.

Implemented types
Implementers
Available Extensions

Constructors

KtCollection()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
iter Iterable<T>
Access to a Iterable to be used in for-loops
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size int
Returns the size of the collection.
read-only

Methods

contains(T element) bool
Checks if the specified element is contained in this collection.
containsAll(KtCollection<T> elements) bool
Checks if all elements in the specified collection are contained in this collection.
isEmpty() bool
Returns true if the collection is empty (contains no elements), false otherwise.
iterator() KtIterator<T>
Returns an iterator over the elements of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited