KtCollection<T> class abstract

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.
no setterinherited
iter Iterable<T>
Access to a Iterable to be used in for-loops
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
Returns the size of the collection.
no setter

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 nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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