public abstract class NextIterator<U>
extends Object
implements scala.collection.Iterator<U>
scala.collection.Iterator.GroupedIterator<B>
scala.collection.TraversableOnce.BufferedCanBuildFrom<A,Coll extends scala.collection.TraversableOnce<Object>>, scala.collection.TraversableOnce.FlattenOps<A>, scala.collection.TraversableOnce.ForceImplicitAmbiguity, scala.collection.TraversableOnce.MonadOps<A>, scala.collection.TraversableOnce.OnceCanBuildFrom<A>
Constructor and Description |
---|
NextIterator() |
Modifier and Type | Method and Description |
---|---|
void |
closeIfNeeded()
Calls the subclass-defined close method, but only once.
|
boolean |
hasNext() |
U |
next() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
$plus$plus, buffered, collect, contains, copyToArray, corresponds, drop, dropWhile, duplicate, exists, filter, filterNot, find, flatMap, forall, foreach, grouped, hasDefiniteSize, indexOf, indexWhere, isEmpty, isTraversableAgain, length, map, padTo, partition, patch, sameElements, scanLeft, scanRight, seq, slice, sliding, sliding$default$2, span, take, takeWhile, toIterator, toStream, toString, toTraversable, withFilter, zip, zipAll, zipWithIndex
$colon$bslash, $div$colon, addString, addString, addString, aggregate, collectFirst, copyToArray, copyToArray, copyToBuffer, count, fold, foldLeft, foldRight, max, maxBy, min, minBy, mkString, mkString, mkString, nonEmpty, product, reduce, reduceLeft, reduceLeftOption, reduceOption, reduceRight, reduceRightOption, reversed, size, sum, to, toArray, toBuffer, toIndexedSeq, toIterable, toList, toMap, toSeq, toSet, toVector
public void closeIfNeeded()
Usually calling close
multiple times should be fine, but historically
there have been issues with some InputFormats throwing exceptions.
public boolean hasNext()
hasNext
in interface scala.collection.Iterator<U>