Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IndexSegment

JSONPointer segment representing an index

Hierarchy

  • IndexSegment

Index

Constructors

Properties

Methods

Constructors

constructor

  • Create a new IndexSegment

    Parameters

    • index: number

      the index of the segment

    Returns IndexSegment

Properties

Readonly index

index: number

The index of the segment

Methods

equals

  • equals(other: Segment | null): boolean
  • Compare two segments.

    Allows comparison of the IndexSegment with another IndexSegment or a KeySegment.

    Parameters

    Returns boolean

    'true' if the other segment is an IndexSegment and the indexes are equal

toString

  • toString(): string
  • Convert the index segment to a string

    Returns string

    a string representation of the segment

Copyright © 2025 DiffusionData Ltd. All Rights Reserved.