Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LinkedListEnumerator<T>

A linked list enumerator.

Type parameters

  • T

Hierarchy

  • LinkedListEnumerator

Index

Constructors

constructor

  • Initializes a new instance of the fm.icelink.linkedListEnumerator class.

    Parameters

    • root: LinkedListNode<T>

      The root node.

    Returns LinkedListEnumerator

Properties

Private __currentNode

__currentNode: LinkedListNode<T>
internal

Private __root

__root: LinkedListNode<T>
internal

Private __started

__started: boolean
internal

Methods

getCurrent

  • getCurrent(): T
  • Gets the current value.

    Returns T

getCurrentNode

  • getCurrentNode(): LinkedListNode<T>
  • Gets the current node.

    Returns LinkedListNode<T>

getTypeString

  • getTypeString(): string
  • Returns string

moveNext

  • moveNext(): boolean
  • Moves to the next node.

    Returns boolean

reset

  • reset(): void
  • Resets this instance.

    Returns void