NodeIterator

scalation.DoublyLinkedList.NodeIterator
class NodeIterator(ns: Node) extends Iterator[Node]

The NodeIterator inner class supports iterating over all the nodes in this list.

Value parameters

ns

the starting node (defaults to tail)

Attributes

Graph
Supertypes
trait Iterator[Node]
trait IterableOnceOps[Node, Iterator, Iterator[Node]]
trait IterableOnce[Node]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

class GroupedIterator[B >: A](self: Iterator[B], size: Int, step: Int)

Attributes

Inherited from:
Iterator
Supertypes
class AbstractIterator[Seq[B]]
trait Iterator[Seq[B]]
trait IterableOnceOps[Seq[B], Iterator, Iterator[Seq[B]]]
trait IterableOnce[Seq[B]]
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def hasNext: Boolean
def next(): Node

Inherited methods

final def ++[B >: Node](xs: => IterableOnce[B]): Iterator[B]

Attributes

Inherited from:
Iterator
final def addString(b: StringBuilder): b.type

Attributes

Inherited from:
IterableOnceOps
final def addString(b: StringBuilder, sep: String): b.type

Attributes

Inherited from:
IterableOnceOps
def addString(b: StringBuilder, start: String, sep: String, end: String): b.type

Attributes

Inherited from:
IterableOnceOps
def buffered: BufferedIterator[Node]

Attributes

Inherited from:
Iterator
def collect[B](pf: PartialFunction[Node, B]): Iterator[B]

Attributes

Inherited from:
Iterator
def collectFirst[B](pf: PartialFunction[Node, B]): Option[B]

Attributes

Inherited from:
IterableOnceOps
def concat[B >: Node](xs: => IterableOnce[B]): Iterator[B]

Attributes

Inherited from:
Iterator
def contains(elem: Any): Boolean

Attributes

Inherited from:
Iterator
def copyToArray[B >: Node](xs: Array[B], start: Int, len: Int): Int

Attributes

Inherited from:
IterableOnceOps
def copyToArray[B >: Node](xs: Array[B], start: Int): Int

Attributes

Inherited from:
IterableOnceOps
def copyToArray[B >: Node](xs: Array[B]): Int

Attributes

Inherited from:
IterableOnceOps
def corresponds[B](that: IterableOnce[B])(p: (Node, B) => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def count(p: Node => Boolean): Int

Attributes

Inherited from:
IterableOnceOps
def distinct: Iterator[Node]

Attributes

Inherited from:
Iterator
def distinctBy[B](f: Node => B): Iterator[Node]

Attributes

Inherited from:
Iterator
def drop(n: Int): Iterator[Node]

Attributes

Inherited from:
Iterator
def dropWhile(p: Node => Boolean): Iterator[Node]

Attributes

Inherited from:
Iterator
def duplicate: (Iterator[Node], Iterator[Node])

Attributes

Inherited from:
Iterator
def exists(p: Node => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def filter(p: Node => Boolean): Iterator[Node]

Attributes

Inherited from:
Iterator
def filterNot(p: Node => Boolean): Iterator[Node]

Attributes

Inherited from:
Iterator
def find(p: Node => Boolean): Option[Node]

Attributes

Inherited from:
IterableOnceOps
def flatMap[B](f: Node => IterableOnce[B]): Iterator[B]

Attributes

Inherited from:
Iterator
def flatten[B](implicit ev: Node => IterableOnce[B]): Iterator[B]

Attributes

Inherited from:
Iterator
def fold[A1 >: Node](z: A1)(op: (A1, A1) => A1): A1

Attributes

Inherited from:
IterableOnceOps
def foldLeft[B](z: B)(op: (B, Node) => B): B

Attributes

Inherited from:
IterableOnceOps
def foldRight[B](z: B)(op: (Node, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def forall(p: Node => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def foreach[U](f: Node => U): Unit

Attributes

Inherited from:
IterableOnceOps
def grouped[B >: Node](size: Int): GroupedIterator[B]

Attributes

Inherited from:
Iterator
def indexOf[B >: Node](elem: B, from: Int): Int

Attributes

Inherited from:
Iterator
def indexOf[B >: Node](elem: B): Int

Attributes

Inherited from:
Iterator
def indexWhere(p: Node => Boolean, from: Int): Int

Attributes

Inherited from:
Iterator
override def isEmpty: Boolean

Attributes

Definition Classes
Iterator -> IterableOnceOps
Inherited from:
Iterator
def isTraversableAgain: Boolean

Attributes

Inherited from:
IterableOnceOps
final def iterator: Iterator[Node]

Attributes

Inherited from:
Iterator
def knownSize: Int

Attributes

Inherited from:
IterableOnce
final def length: Int

Attributes

Inherited from:
Iterator
def map[B](f: Node => B): Iterator[B]

Attributes

Inherited from:
Iterator
def max[B >: Node](implicit ord: Ordering[B]): Node

Attributes

Inherited from:
IterableOnceOps
def maxBy[B](f: Node => B)(implicit ord: Ordering[B]): Node

Attributes

Inherited from:
IterableOnceOps
def maxByOption[B](f: Node => B)(implicit ord: Ordering[B]): Option[Node]

Attributes

Inherited from:
IterableOnceOps
def maxOption[B >: Node](implicit ord: Ordering[B]): Option[Node]

Attributes

Inherited from:
IterableOnceOps
def min[B >: Node](implicit ord: Ordering[B]): Node

Attributes

Inherited from:
IterableOnceOps
def minBy[B](f: Node => B)(implicit ord: Ordering[B]): Node

Attributes

Inherited from:
IterableOnceOps
def minByOption[B](f: Node => B)(implicit ord: Ordering[B]): Option[Node]

Attributes

Inherited from:
IterableOnceOps
def minOption[B >: Node](implicit ord: Ordering[B]): Option[Node]

Attributes

Inherited from:
IterableOnceOps
final def mkString: String

Attributes

Inherited from:
IterableOnceOps
final def mkString(sep: String): String

Attributes

Inherited from:
IterableOnceOps
final def mkString(start: String, sep: String, end: String): String

Attributes

Inherited from:
IterableOnceOps
def nextOption(): Option[Node]

Attributes

Inherited from:
Iterator
def nonEmpty: Boolean

Attributes

Inherited from:
IterableOnceOps
def padTo[B >: Node](len: Int, elem: B): Iterator[B]

Attributes

Inherited from:
Iterator
def partition(p: Node => Boolean): (Iterator[Node], Iterator[Node])

Attributes

Inherited from:
Iterator
def patch[B >: Node](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]

Attributes

Inherited from:
Iterator
def product[B >: Node](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def reduce[B >: Node](op: (B, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeft[B >: Node](op: (B, Node) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeftOption[B >: Node](op: (B, Node) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceOption[B >: Node](op: (B, B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceRight[B >: Node](op: (Node, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceRightOption[B >: Node](op: (Node, B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
protected def reversed: Iterable[Node]

Attributes

Inherited from:
IterableOnceOps
def sameElements[B >: Node](that: IterableOnce[B]): Boolean

Attributes

Inherited from:
Iterator
def scanLeft[B](z: B)(op: (B, Node) => B): Iterator[B]

Attributes

Inherited from:
Iterator
def size: Int

Attributes

Inherited from:
IterableOnceOps
def slice(from: Int, until: Int): Iterator[Node]

Attributes

Inherited from:
Iterator
def sliding[B >: Node](size: Int, step: Int): GroupedIterator[B]

Attributes

Inherited from:
Iterator
def span(p: Node => Boolean): (Iterator[Node], Iterator[Node])

Attributes

Inherited from:
Iterator
def splitAt(n: Int): (Iterator[Node], Iterator[Node])

Attributes

Inherited from:
IterableOnceOps
def stepper[S <: Stepper[_]](implicit shape: StepperShape[Node, S]): S

Attributes

Inherited from:
IterableOnce
def sum[B >: Node](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def take(n: Int): Iterator[Node]

Attributes

Inherited from:
Iterator
def takeWhile(p: Node => Boolean): Iterator[Node]

Attributes

Inherited from:
Iterator
override def tapEach[U](f: Node => U): Iterator[Node]

Attributes

Definition Classes
Iterator -> IterableOnceOps
Inherited from:
Iterator
def to[C1](factory: Factory[Node, C1]): C1

Attributes

Inherited from:
IterableOnceOps
def toArray[B >: Node : ClassTag]: Array[B]

Attributes

Inherited from:
IterableOnceOps
final def toBuffer[B >: Node]: Buffer[B]

Attributes

Inherited from:
IterableOnceOps
def toIndexedSeq: IndexedSeq[Node]

Attributes

Inherited from:
IterableOnceOps
def toList: List[Node]

Attributes

Inherited from:
IterableOnceOps
def toMap[K, V](implicit ev: Node <:< (K, V)): Map[K, V]

Attributes

Inherited from:
IterableOnceOps
def toSeq: Seq[Node]

Attributes

Inherited from:
IterableOnceOps
def toSet[B >: Node]: Set[B]

Attributes

Inherited from:
IterableOnceOps
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Iterator -> Any
Inherited from:
Iterator
def toVector: Vector[Node]

Attributes

Inherited from:
IterableOnceOps
def withFilter(p: Node => Boolean): Iterator[Node]

Attributes

Inherited from:
Iterator
def zip[B](that: IterableOnce[B]): Iterator[(Node, B)]

Attributes

Inherited from:
Iterator
def zipAll[A1 >: Node, B](that: IterableOnce[B], thisElem: A1, thatElem: B): Iterator[(A1, B)]

Attributes

Inherited from:
Iterator
def zipWithIndex: Iterator[(Node, Int)]

Attributes

Inherited from:
Iterator

Deprecated and Inherited methods

final def /:[B](z: B)(op: (B, Node) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldLeft instead of /:
Inherited from:
IterableOnceOps
final def :\[B](z: B)(op: (Node, B) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldRight instead of :\\
Inherited from:
IterableOnceOps
def aggregate[B](z: => B)(seqop: (B, Node) => B, combop: (B, B) => B): B

Attributes

Deprecated
[Since version 2.13.0] `aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.
Inherited from:
IterableOnceOps
final def copyToBuffer[B >: Node](dest: Buffer[B]): Unit

Attributes

Deprecated
[Since version 2.13.0] Use `dest ++= coll` instead
Inherited from:
IterableOnceOps
final override def hasDefiniteSize: Boolean

Attributes

Deprecated
[Since version 2.13.0] hasDefiniteSize on Iterator is the same as isEmpty
Definition Classes
Iterator -> IterableOnceOps
Inherited from:
Iterator
def scanRight[B](z: B)(op: (Node, B) => B): Iterator[B]

Attributes

Deprecated
[Since version 2.13.0] Call scanRight on an Iterable instead.
Inherited from:
Iterator
def seq: Iterator.this.type

Attributes

Deprecated
[Since version 2.13.0] Iterator.seq always returns the iterator itself
Inherited from:
Iterator
final def toIterator: Iterator[Node]

Attributes

Deprecated
[Since version 2.13.0] Use .iterator instead of .toIterator
Inherited from:
IterableOnceOps
final def toStream: Stream[Node]

Attributes

Deprecated
[Since version 2.13.0] Use .to(LazyList) instead of .toStream
Inherited from:
IterableOnceOps

Concrete fields

var n: Node