ScheduleIntersection

public class ScheduleIntersection : ScheduleDefinition

Intersection between multiple schedule definition objects.

  • Initializes an intersection between multiple schedule definition objects assumed to be constant. Returns nil when week or day intervals do not intersect.

    Declaration

    Swift

    public init?(_ definitions: [ScheduleDefinition])
  • Initializes an intersection between multiple schedule definition objects specified as arguments and assumed to be constant. Returns nil when week or day intervals do not intersect.

    Declaration

    Swift

    public convenience init?(_ definitions: ScheduleDefinition...)
  • Undocumented

    Declaration

    Swift

    public let definitions: [ScheduleDefinition]
  • Declaration

    Swift

    public override var weekInterval: WeekRange { get }
  • Declaration

    Swift

    public override var dayInterval: DayRange { get }
  • Returns excluded intervals by combining the exclusion results of the intersected schedule definitions for the same (specified) time interval argument.

    Declaration

    Swift

    public override func excludedIntervals(for time: Time,
                                           towards limit: Time) -> [TimeRange]
  • Offers optimizations when excluded intervals aren’t possible.

    Declaration

    Swift

    public override var hasExcludedIntervals: Bool { get }