modCount
The number of times this list is structurally modified.
A modification is considered to be structural if it changes the list size, or otherwise changes it in a way that iterations in progress may return incorrect results.
This value can be used by iterators returned by iterator and listIterator to provide fail-fast behavior when a concurrent modification is detected during iteration. ConcurrentModificationException will be thrown in this case.
Since Kotlin
2.0The number of times this list is structurally modified.
A modification is considered to be structural if it changes the list size, or otherwise changes it in a way that iterations in progress may return incorrect results.
This value can be used by iterators returned by iterator and listIterator to provide fail-fast behavior when a concurrent modification is detected during iteration. ConcurrentModificationException will be thrown in this case.
Since Kotlin
1.1The number of times this list is structurally modified.
A modification is considered to be structural if it changes the list size, or otherwise changes it in a way that iterations in progress may return incorrect results.
This value can be used by iterators returned by iterator and listIterator to provide fail-fast behavior when a concurrent modification is detected during iteration. ConcurrentModificationException will be thrown in this case.
Since Kotlin
1.3The number of times this list is structurally modified.
A modification is considered to be structural if it changes the list size, or otherwise changes it in a way that iterations in progress may return incorrect results.
This value can be used by iterators returned by iterator and listIterator to provide fail-fast behavior when a concurrent modification is detected during iteration. ConcurrentModificationException will be thrown in this case.
Since Kotlin
1.8The number of times this list is structurally modified.
A modification is considered to be structural if it changes the list size, or otherwise changes it in a way that iterations in progress may return incorrect results.
This value can be used by iterators returned by iterator and listIterator to provide fail-fast behavior when a concurrent modification is detected during iteration. ConcurrentModificationException will be thrown in this case.