public class ByMonthDay extends ByRuleIntegerAbstract<ByMonthDay>
By Month Day BYMONTHDAY RFC 5545, iCalendar 3.3.10, page 42
The BYMONTHDAY rule part specifies a COMMA-separated list of days of the month. Valid values are 1 to 31 or -31 to -1. For example, -10 represents the tenth to the last day of the month. The BYMONTHDAY rule part MUST NOT be specified when the FREQ rule part is set to WEEKLY.
valueProperty
valueProperty
Constructor and Description |
---|
ByMonthDay()
sorted array of days of month
(i.e.
|
ByMonthDay(ByMonthDay source) |
ByMonthDay(java.lang.Integer... daysOfMonth) |
Modifier and Type | Method and Description |
---|---|
static ByMonthDay |
parse(java.lang.String content) |
java.util.stream.Stream<java.time.temporal.Temporal> |
streamRecurrences(java.util.stream.Stream<java.time.temporal.Temporal> inStream,
java.time.temporal.ChronoUnit chronoUnit,
java.time.temporal.Temporal dateTimeStart)
Return stream of valid dates made by rule (infinite if COUNT or UNTIL not present)
|
parseContent, setValue, toContent
compareTo, equals, errors, hashCode, setValue, setValue, toString, withValue, withValue
elementType, getParent, getValue, name, setParent, valueProperty, withValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChronoUnit
elementType, getValue, valueProperty
public ByMonthDay()
sorted array of days of month (i.e. 5, 10 = 5th and 10th days of the month, -3 = 3rd from last day of month) Uses a varargs parameter to allow any number of days
public ByMonthDay(java.lang.Integer... daysOfMonth)
public ByMonthDay(ByMonthDay source)
public java.util.stream.Stream<java.time.temporal.Temporal> streamRecurrences(java.util.stream.Stream<java.time.temporal.Temporal> inStream, java.time.temporal.ChronoUnit chronoUnit, java.time.temporal.Temporal dateTimeStart)
Return stream of valid dates made by rule (infinite if COUNT or UNTIL not present)
streamRecurrences
in interface ByRule<javafx.collections.ObservableList<java.lang.Integer>>
streamRecurrences
in class ByRuleAbstract<java.lang.Integer,ByMonthDay>
inStream
- - Current stream to be added to or subtracted fromchronoUnit
- - ChronoUnit of last modification to inStreampublic static ByMonthDay parse(java.lang.String content)