iterator property
Returns a new Iterator
that allows iterating the entries of the IMap.
-
If the map's config has ConfigMap.sort
true
(the default), it will iterate in the natural order of entries. In other words, if the keys/values are Comparable, they will be sorted first bykeyA.compareTo(keyB)
and then byvalueA.compareTo(valueB)
. -
If the map's config has ConfigMap.sort
false
, or if the keys/values are not Comparable, the iterator order is by insertion order.
Implementation
Iterator<MapEntry<K, V>> get iterator => _m.iterator;