Schedule

trait Schedule

Defines utility for scheduled times.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def between(start: LocalDateTime, end: LocalDateTime): Iterator[LocalDateTime]

Gets scheduled times in given period.

Gets scheduled times in given period.

Value Params
end

end of period

start

start of period

Note

Both start and end are inclusive.

Concrete methods

def +(time: LocalDateTime): Schedule

Creates new schedule by adding supplied scheduled time.

Creates new schedule by adding supplied scheduled time.

Value Params
time

schedule time

Returns

new schedule

Note

Alias to add

def ++(other: Schedule): Schedule

Creates new schedule by combining supplied schedule.

Creates new schedule by combining supplied schedule.

Value Params
other

schedule

Returns

new schedule

Note

Alias to combine

def add(time: LocalDateTime): Schedule

Creates new schedule by adding supplied scheduled time.

Creates new schedule by adding supplied scheduled time.

Value Params
time

schedule time

Returns

new schedule

def between(start: LocalDate, end: LocalDate): Iterator[LocalDateTime]

Gets scheduled times in given period.

Gets scheduled times in given period.

Equivalent to: between(start.atTime(LocalTime.MIN), end.atTime(LocalTime.MAX))

Value Params
end

end of period

start

start of period

Note

Both start and end are inclusive.

def combine(other: Schedule): Schedule

Creates new schedule by combining supplied schedule.

Creates new schedule by combining supplied schedule.

Value Params
other

schedule

Returns

new schedule

def next(after: LocalDateTime): Option[LocalDateTime]

Gets next scheduled time after given time.

Gets next scheduled time after given time.

Value Params
after

time after which scheduled time occurs