Options
All
  • Public
  • Public/Protected
  • All
Menu

An Interval holds the first and last index bounds.

export

Hierarchy

  • Interval

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Interval(first: number, last: number): Interval
  • Creates an instance of Interval.

    memberof

    Interval

    Parameters

    • first: number

      Starting index (inclusive).

    • last: number

      Ending index (exclusive).

    Returns Interval

Properties

Readonly first

first: number

Readonly last

last: number

Methods

length

  • length(): number
  • The length of the token.

    memberof

    Interval

    Returns number

    The length.

Generated using TypeDoc