modCount

protected var modCount: Int(source)

Since Kotlin

1.1
protected var modCount: Int(source)

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 behavoir when a concurrent modification is detected during iteration. ConcurrentModificationException will be thrown in this case.

Since Kotlin

1.3
protected var modCount: Int(source)

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 behavoir when a concurrent modification is detected during iteration. ConcurrentModificationException will be thrown in this case.

Since Kotlin

1.8
protected var modCount: Int(source)

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 behavoir when a concurrent modification is detected during iteration. ConcurrentModificationException will be thrown in this case.

Since Kotlin

1.8