|
Scala Library
|
|
scala/BufferedIterator.scala]
trait
BufferedIterator[+A]
extends Iterator[A]| Method Summary | |
def
|
advanced : Advanced[A] |
override def
|
buffered
: BufferedIterator[A]
Returns a buffered iterator from this iterator.
|
abstract def
|
head
: A
Checks what the next available element is.
|
def
|
headOpt : Option[A] |
def
|
readIf
[T](f : PartialFunction[A, T]) : Option[T]
iterates over and applies
f to the next element
if this iterator has a next element that f is defined for. |
def
|
readWhile
(f : (A) => Boolean) : Boolean
iterates over elements as long as
f is true
for each element, returns whether anything was read |
| Methods inherited from Iterator | |
| hasNext (abstract), next (abstract), take, drop, slice, map, append, ++, flatMap, filter, takeWhile, dropWhile, zip, zipWithIndex, foreach, forall, exists, contains, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, counted, duplicate, copyToArray, readInto, readInto, readInto, copyToBuffer, toList, collect, mkString, mkString, mkString, addString, toString |
| 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
override
def
buffered : BufferedIterator[A]
def
readIf[T](f : PartialFunction[A, T]) : Option[T]
f to the next element
if this iterator has a next element that f is defined for.f is true
for each element, returns whether anything was read|
Scala Library
|
|