public interface Frequency
Interface for frequency rule that produces a stream of LocalDateTime start times for repeatable events FREQ rule as defined in RFC 5545 iCalendar 3.3.10 p37 (i.e. Daily, Weekly, Monthly, etc.)
Type | Property and Description |
---|---|
javafx.beans.property.IntegerProperty |
interval
Number of frequency periods elapsed before next occurrence.
|
Modifier and Type | Method and Description |
---|---|
java.time.temporal.TemporalAdjuster |
adjuster()
Temporal adjuster every class implementing Frequency must provide that modifies frequency dates
For example, Weekly class advances the dates by INTERVAL Number of weeks.
|
javafx.collections.ObservableList<ByRule> |
byRules()
Collection of rules that modify frequency rule (see RFC 5545, iCalendar 3.3.10 Page 42)
The rules include all BYxxx rules, EXDate and RDate lists.
|
FrequencyUtilities.FrequencyEnum |
frequencyType()
Which of the enum type FrenquencyType the implementing class represents
|
java.lang.Integer |
getInterval()
Number of frequency periods elapsed before next occurrence.
|
javafx.beans.property.IntegerProperty |
intervalProperty()
Number of frequency periods elapsed before next occurrence.
|
default ByRule |
lookupByRule(ByRuleEnum byRuleType) |
default java.lang.String |
makeErrorString()
Deprecated.
|
default java.time.temporal.Temporal |
makeFrequencyOccurrence(java.time.temporal.Temporal dateTimeStart,
java.time.temporal.Temporal start)
Deprecated.
|
void |
setInterval(java.lang.Integer interval)
Number of frequency periods elapsed before next occurrence.
|
java.util.stream.Stream<java.time.temporal.Temporal> |
stream(java.time.temporal.Temporal start)
Resulting stream of start date/times by applying Frequency temporal adjuster and all, if any,
Rules.
|
javafx.beans.property.IntegerProperty intervalProperty
Number of frequency periods elapsed before next occurrence. Defaults to 1
getInterval()
,
setInterval(Integer)
java.lang.Integer getInterval()
Number of frequency periods elapsed before next occurrence. Defaults to 1
void setInterval(java.lang.Integer interval)
Number of frequency periods elapsed before next occurrence. Defaults to 1
javafx.beans.property.IntegerProperty intervalProperty()
Number of frequency periods elapsed before next occurrence. Defaults to 1
getInterval()
,
setInterval(Integer)
javafx.collections.ObservableList<ByRule> byRules()
Collection of rules that modify frequency rule (see RFC 5545, iCalendar 3.3.10 Page 42) The rules include all BYxxx rules, EXDate and RDate lists. The BYxxx rules must be applied in a specific order and can only be occur once BYxxx rule parts are applied to the current set of evaluated occurrences in the following order: BYMONTH, BYWEEKNO, BYYEARDAY, BYMONTHDAY, BYDAY, BYHOUR, BYMINUTE, BYSECOND and BYSETPOS; then COUNT and UNTIL are evaluated.
default ByRule lookupByRule(ByRuleEnum byRuleType)
java.util.stream.Stream<java.time.temporal.Temporal> stream(java.time.temporal.Temporal start)
Resulting stream of start date/times by applying Frequency temporal adjuster and all, if any, Rules. Starts on startDateTime, which MUST be a valid occurrence date/time, but not necessarily the first date/time (DTSTART) in the sequence. A later startDateTime can be used to more efficiently get to later dates in the stream.
start
- - starting point of stream (MUST be a valid occurrence date/time)FrequencyUtilities.FrequencyEnum frequencyType()
Which of the enum type FrenquencyType the implementing class represents
java.time.temporal.TemporalAdjuster adjuster()
Temporal adjuster every class implementing Frequency must provide that modifies frequency dates For example, Weekly class advances the dates by INTERVAL Number of weeks.
@Deprecated default java.time.temporal.Temporal makeFrequencyOccurrence(java.time.temporal.Temporal dateTimeStart, java.time.temporal.Temporal start)
Find previous occurrence date to start the stream
dateTimeStart
- - DTSTARTstart
- @Deprecated default java.lang.String makeErrorString()
Checks to see if object contains required properties. Returns empty string if it is valid. Returns string of errors if not valid.