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
-
- KtIterable<
T>
- KtIterable<
- Implementers
- Available extensions
Constructors
Properties
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