Options
All
  • Public
  • Public/Protected
  • All
Menu

A helper class for working with activities.

since

1.0

Hierarchy

  • ActivityHelper

Index

Methods

Static intersect

  • Checks whether the time bounds of the two given activities intersect with each other.

    since

    1.0

    Parameters

    • activity1: Activity

      the first activity

    • activity2: Activity

      the second activity

    Returns boolean

    true if the time bounds intersect

Static intersectAsNumber

  • intersectAsNumber(startTime1: number, endTime1: number, startTime2: number, endTime2: number): boolean
  • Checks whether the two given time bounds intersect with each other.

    since

    1.0

    Parameters

    • startTime1: number

      start time of the first time interval

    • endTime1: number

      end time of the first time interval

    • startTime2: number

      start time of the second time interval

    • endTime2: number

      end time of the second time interval

    Returns boolean

    true if the time intervals intersect with each other