implicit final class BufferedIteratorWrapper[T] extends AnyVal
Augments scala.collection.Iterator with a buffered
method that wraps it into a
BufferedIterator.
- T
The value type of the iterator.
- Alphabetic
- By Inheritance
- BufferedIteratorWrapper
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
BufferedIteratorWrapper(iterator: Iterator[T])
- iterator
The iterator.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
buffered(bufferSize: Int): Iterator[T]
Creates a BufferedIterator from this iterator.
Creates a BufferedIterator from this iterator.
- bufferSize
The number of elements that should be pre-fetched. When
next()
is called, an element is picked from the buffer, and another element is pre-fetched fromiterator
.- returns
a new BufferedIterator instance.
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val iterator: Iterator[T]
-
def
toString(): String
- Definition Classes
- Any