end
# This iterator is quite stupid since it is used for only one item.
-class ContainerIterator[E]
+private class ContainerIterator[E]
super Iterator[E]
redef fun item do return _container.item
end
# An `Iterator` on `AbstractArray`
-class ArrayIterator[E]
+private class ArrayIterator[E]
super IndexedIterator[E]
redef fun item do return _array[_index]
end
# Iterators on sets implemented with arrays.
-class ArraySetIterator[E: Object]
+private class ArraySetIterator[E: Object]
super Iterator[E]
redef fun is_ok do return _iter.is_ok
end
end
-class ArrayMapKeys[K: Object, E]
+private class ArrayMapKeys[K: Object, E]
super RemovableCollection[K]
# The original map
var map: ArrayMap[K, E]
redef fun remove_all(key) do self.remove(key)
end
-class ArrayMapValues[K: Object, E]
+private class ArrayMapValues[K: Object, E]
super RemovableCollection[E]
# The original map
var map: ArrayMap[K, E]
end
# View of the keys of a HashMap
-class HashMapKeys[K: Object, V]
+private class HashMapKeys[K: Object, V]
super RemovableCollection[K]
# The original map
var map: HashMap[K, V]
end
# View of the values of a Map
-class HashMapValues[K: Object, V]
+private class HashMapValues[K: Object, V]
super RemovableCollection[V]
# The original map
var map: HashMap[K, V]
end
end
-class HashSetIterator[E: Object]
+private class HashSetIterator[E: Object]
super Iterator[E]
redef fun is_ok do return _node != null