Scala Library
|
|
scala/BufferedIterator.scala
]
trait
Advanced[+A]
extends
BufferedIterator[A]Method Summary | |
override def
|
advanced : Advanced[A] |
override def
|
counted
: CountedIterator[A] with Advanced[A]
Returns a counted iterator from this iterator.
|
protected def
|
defaultPeek
: A
element returned when no element left to iterate over;
throws
NoSuchElementException by default |
override def
|
hasNext
: Boolean
Does this iterator provide another element?
|
def
|
head
: A
Checks what the next available element is.
|
def
|
peek
(n : Int) : A
return the
n th element that will be iterated by this iterator |
abstract def
|
peekList
(sz : Int) : Seq[A]
returns the first
sz elements that will be iterated by this iterator,
or fewer if the iterator has less elements left to iterate over |
def
|
readIfStartsWith (seq : Seq[Any]) : Boolean |
def
|
startsWith
(seq : Seq[Any]) : Boolean
true if elements of
seq will be iterated over next in this iterator |
override def
|
toString
: java.lang.String
Returns a string representation of the object.
|
Methods inherited from BufferedIterator | |
headOpt, buffered, readIf, readWhile |
Methods inherited from Iterator | |
next (abstract), take, drop, slice, map, append, ++, flatMap, filter, takeWhile, dropWhile, zip, zipWithIndex, foreach, forall, exists, contains, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, duplicate, copyToArray, readInto, readInto, readInto, copyToBuffer, toList, collect, mkString, mkString, mkString, addString |
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 |
sz
elements that will be iterated by this iterator,
or fewer if the iterator has less elements left to iterate over
def
head : A
n
th element that will be iterated by this iteratorprotected
def
defaultPeek : A
NoSuchElementException
by defaultseq
will be iterated over next in this iteratoroverride
def
counted : CountedIterator[A] with
Advanced[A]
override
def
hasNext : Boolean
override
def
toString : java.lang.String
The default representation is platform dependent.
Scala Library
|
|