package iterator
Provides new types of iterators and utility classes and methods for handling and extending existing ones.
- Alphabetic
- By Inheritance
- iterator
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
CircularIterator
[A] extends Iterator[A]
A wrapper around an iterator that iterates over its elements in a circular way.
A wrapper around an iterator that iterates over its elements in a circular way.
- A
the type of the elements to iterate over
-
class
CompositeIterator
[A] extends Iterator[A]
An iterator that wraps a list of other iterators and iterates over its elements sequentially.
An iterator that wraps a list of other iterators and iterates over its elements sequentially. It handles compositions of a large number of iterators in a more efficient way than simply concatenating them, avoiding stack overflows in particular. It supports appending of new iterators while keeping its efficiency.
- A
the type of the elements to iterate over
-
class
ExtendedIterator
[A] extends Iterator[A]
A decorator for iterators adding more control over its lifetime.
A decorator for iterators adding more control over its lifetime.
- A
the type of the elements
- case class MergedBufferedIterator [T](iterators: List[BufferedIterator[T]])(implicit ord: Ordering[T]) extends BufferedIterator[T] with Product with Serializable
-
class
RoundRobinIterator
[A] extends Iterator[A]
An iterator that wraps an array of other iterators and iterates over its elements in a round-robin way.
An iterator that wraps an array of other iterators and iterates over its elements in a round-robin way.
- A
the type of the elements to iterate over
Value Members
-
object
CircularIterator
Companion object containing a factory for circular iterators.
-
object
CompositeIterator
Companion object containing a factory for composite iterators.
-
object
RoundRobinIterator
Companion object containing a factory for round-robin iterators.