in scala
trait BufferedIterator

trait BufferedIterator[A]()
extends Iterator[A]
with ScalaObject

Buffered iterators are iterators which allow to inspect the next element without discarding it.
Author:
Martin Odersky
Version:
1.0, 16/07/2003

Method Summary
abstract def head: A
     Checks what the next available element is.

Methods inherited from java/lang/Object-class
clone, eq, equals, finalize, getClass, hashCode, notify, notifyAll, synchronized, toString, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Methods inherited from scala/Iterator-class
/:, :\, append, buffered, copyToArray, drop, duplicate, exists, filter, find, flatMap, foldLeft, foldRight, forall, foreach, hasNext, map, next, take, toList, zip

Method Detail

head

  abstract def head: A
Checks what the next available element is.
Returns:
the current element