scala.collection.jcl.Buffer.Range
class RangeIterator

[source: `scala/collection/jcl/Buffer/Range.scala`]

`` `class` RangeIterator
  `extends` BufferIterator[Int, A]

Value Summary
`val` | underlying : BufferIterator[Int, A]

Method Summary
`def` | add (a : A) : Unit Inserts "a" after the iterator's cursor. If next was last called, "a" is inserted after the element returned. If previous was last called, "a" is inserted before the element returned.
`def` | hasNext : Boolean Does this iterator provide another element?
`def` | hasPrevious : Boolean
`def` | next : A Returns the next element.
`def` | nextIndex : Int
`def` | previous : A
`def` | previousIndex : Int
`def` | remove : Unit
`def` | set (a : A) : Unit Sets the element before this iterator's cursor to "a." Replaces either the last element returned by "next" or, if previous was called, the next element that would be return by "previous."

Methods inherited from SeqIterator
seek, indexOf, map

Methods inherited from MutableIterator
filter, has, remove, retain, buffered0

Methods inherited from Iterator
take, drop, append, ++, flatMap, takeWhile, dropWhile, zip, zipWithIndex, foreach, forall, exists, contains, find, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, buffered, 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

Value Details

`` `val` underlying : BufferIterator[Int, A]

Method Details

`` `def` hasNext : Boolean

  Does this iterator provide another element?

`` `def` hasPrevious : Boolean

Returns
  True if and only if the iterator's cursor is not at the beging of the iteration.

`` `def` next : A

  Returns the next element.

`` `def` previous : A

Returns
  The previous element, will move the iterator's cursor backwards.

`` `def` add(a : A) : Unit

  Inserts "a" after the iterator's cursor. If next was last called, "a" is inserted after the element returned. If previous was last called, "a" is inserted before the element returned.

Overrides
  BufferIterator.add

`` `def` set(a : A) : Unit

  Sets the element before this iterator's cursor to "a." Replaces either the last element returned by "next" or, if previous was called, the next element that would be return by "previous."

Overrides
  BufferIterator.set

`` `def` remove : Unit

`` `def` nextIndex : Int

Returns
  s The index at the iterator's cursor.

`` `def` previousIndex : Int

Returns
  s The index of the element before the iterator's cursor.