scala
trait BufferedIterator

[source: `scala/BufferedIterator.scala`]

`` `trait` BufferedIterator[+A]
  `extends` Iterator[A]

  Buffered iterators are iterators which allow to inspect the next element without discarding it.

Author
  Martin Odersky
Version
  1.0, 16/07/2003

Direct Known Subclasses:
  Range

Method Summary
`override def` | buffered : BufferedIterator[A] Returns a buffered iterator from this iterator.
`abstract def` | head : A Checks what the next available element is.

Methods inherited from Iterator
hasNext (abstract), next (abstract), take, drop, map, append, ++, flatMap, filter, takeWhile, dropWhile, zip, zipWithIndex, foreach, forall, exists, contains, find, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, counted, duplicate, copyToArray, copyToBuffer, toList, mkString, mkString, addString

Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

Method Details

`abstract` `def` head : A

  Checks what the next available element is.

Returns
  the current element

`override` `def` buffered : BufferedIterator[A]

  Returns a buffered iterator from this iterator.

Overrides
  Iterator.buffered