Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IntervalSet

Hierarchy

  • IntervalSet<VData>
    • IntervalSet

Index

Constructors

constructor

  • Parameters

    • intervals: Interval<VData>[]

    Returns IntervalSet

Methods

add

  • add(interval: Interval<VData>): void
  • Parameters

    • interval: Interval<VData>

    Returns void

arbitrary_interval

  • arbitrary_interval(): Interval<VData> | null
  • Returns Interval<VData> | null

length

  • length(): number
  • Returns number

remove

  • remove(interval: Interval<VData>): void
  • Parameters

    • interval: Interval<VData>

    Returns void

time_overlaps

  • time_overlaps(bounds: Bounds): IntervalSet<VData>
  • Parameters

    • bounds: Bounds

    Returns IntervalSet<VData>

to_json

  • to_json(): any
  • Returns any

to_list

  • to_list(): Interval<VData>[]
  • Returns Interval<VData>[]

union

  • union(other: IntervalSet<VData>): IntervalSet<VData>
  • Parameters

    • other: IntervalSet<VData>

    Returns IntervalSet<VData>

Static from_json

  • from_json<S>(obj: any, payload_from_json: function): IntervalSet<S>
  • Type parameters

    • S

    Parameters

    • obj: any
    • payload_from_json: function
        • (o: any): S
        • Parameters

          • o: any

          Returns S

    Returns IntervalSet<S>

Generated using TypeDoc