Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Enumerator<T>

表示一个默认的枚举器。

class
version

1.0.0

Type parameters

  • T

Hierarchy

  • Enumerator

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Private _current

_current: T

Private _index

_index: number

Private _items

_items: Array<T>

Accessors

current

  • get current(): T
  • 获取当前遍历的值。

    summary

    如果已经遍历结束,则返回 undefined。

    property

    Returns T

    T

Methods

next

  • next(): boolean
  • 将枚举数推进到集合的下一个元素。

    Returns boolean

    boolean 如果枚举数已成功地推进到下一个元素,则为 true;如果枚举数传递到集合的末尾,则为 false。

Generated using TypeDoc