Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ValueEntryCursor<K, V>

Type parameters

  • K

  • V

Hierarchy

  • Cursor<[K, V]>
    • ValueEntryCursor

Index

Constructors

constructor

Properties

Readonly cursor

cursor: Cursor<[Value, Value]>

Readonly keyForm

keyForm: Form<K, unknown>

Readonly valueForm

valueForm: Form<V, unknown>

Methods

delete

  • delete(): void
  • Returns void

hasNext

  • hasNext(): boolean
  • Returns boolean

hasPrevious

  • hasPrevious(): boolean
  • Returns boolean

head

  • head(): [K, V]
  • Returns [K, V]

isEmpty

  • isEmpty(): boolean
  • Returns boolean

next

  • next(): { done: boolean; value?: [K, V] }
  • Returns { done: boolean; value?: [K, V] }

    • done: boolean
    • Optional value?: [K, V]

nextIndex

  • nextIndex(): number
  • Returns number

previous

  • previous(): { done: boolean; value?: [K, V] }
  • Returns { done: boolean; value?: [K, V] }

    • done: boolean
    • Optional value?: [K, V]

previousIndex

  • previousIndex(): number
  • Returns number

set

  • set(newValue: [K, V]): void
  • Parameters

    • newValue: [K, V]

    Returns void

skip

  • skip(count: number): void
  • Parameters

    • count: number

    Returns void

step

  • step(): void
  • Returns void

Static array

  • array<T>(array: readonly T[], index?: number, limit?: number): Cursor<T>
  • Type parameters

    • T

    Parameters

    • array: readonly T[]
    • Optional index: number
    • Optional limit: number

    Returns Cursor<T>

Static empty

  • Type parameters

    • T

    Returns Cursor<T>

Static unary

  • unary<T>(value: T): Cursor<T>
  • Type parameters

    • T

    Parameters

    • value: T

    Returns Cursor<T>

Generated using TypeDoc