846 B
846 B
Collection
Is a Iterable with known size, a finite Iterable:
class Collection : Iterable {
val size
}
Collection is a read/traversal contract shared by mutable and immutable collections.
Concrete collection classes:
- Mutable: List, Set, Map
- Immutable: ImmutableList, ImmutableSet, ImmutableMap
| name | description |
|---|
- (1)
comparator(a,b)should return -1 ifa < b, +1 ifa > bor zero.
See List, Set, Iterable and Efficient Iterables in Kotlin Interop