scala.collection

trait BufferedIterator

[source: scala/collection/BufferedIterator.scala]

trait BufferedIterator[+A]
extends Iterator[A]
Buffered iterators are iterators which provide a method head that inspects the next element without discarding it.
Author
Martin Odersky
Version
2.8
Direct Known Subclasses:
VectorTemplate.Elements

Method Summary
override def buffered : BufferedIterator[A]
Returns a buffered iterator from this iterator.
abstract def head : A
Returns next element of iterator without advancing beyond it.
Methods inherited from Iterator
hasNext (abstract), next (abstract), take, drop, slice, map, ++, flatMap, filter, takeWhile, partition, dropWhile, zip, padTo, zipWithIndex, zipAll, foreach, forall, exists, contains, find, indexWhere, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, reduceLeftOpt, reduceRightOpt, length, duplicate, patch, copyToArray, copyToArray, copyToArray, copyToBuffer, toList, toStream, toSequence, mkString, mkString, mkString, addString, addString, addString, toString, append, findIndexOf, collect, counted, readInto, readInto, readInto
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
abstract def head : A
Returns next element of iterator without advancing beyond it.

override def buffered : BufferedIterator[A]
Returns a buffered iterator from this iterator.
Overrides
Iterator.buffered