Class ByMonthDay
java.lang.Object
jfxtras.icalendarfx.VElementBase
jfxtras.icalendarfx.properties.component.recurrence.rrule.RRulePartBase<List<Integer>, ByMonthDay>
jfxtras.icalendarfx.properties.component.recurrence.rrule.byxxx.ByRuleAbstract<Integer, ByMonthDay>
jfxtras.icalendarfx.properties.component.recurrence.rrule.byxxx.ByRuleIntegerAbstract<ByMonthDay>
jfxtras.icalendarfx.properties.component.recurrence.rrule.byxxx.ByMonthDay
- All Implemented Interfaces:
Comparable<ByRule<List<Integer>>>, ByRule<List<Integer>>, RRulePart<List<Integer>>, VChild, VElement
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class VElementBase
VElementBase.Message, VElementBase.MessageEffect -
Field Summary
Fields inherited from class RRulePartBase
elementTypeFields inherited from class VElementBase
BEGIN, END -
Constructor Summary
ConstructorsConstructorDescriptionsorted array of days of month (i.e.ByMonthDay(Integer... daysOfMonth) ByMonthDay(ByMonthDay source) -
Method Summary
Modifier and TypeMethodDescriptionpredicate tests value range in listener attached toRRulePartBase.getValue()Ensures added values are within allowed rangestatic ByMonthDaystreamRecurrences(Stream<Temporal> inStream, ChronoUnit chronoUnit, Temporal dateTimeStart) Return stream of valid dates made by rule (infinite if COUNT or UNTIL not present)Methods inherited from class ByRuleIntegerAbstract
errors, parseContent, setValue, toStringMethods inherited from class RRulePartBase
equals, extractValue, getParent, getValue, hashCode, name, setParent, withValueMethods inherited from class VElementBase
elementName, isContentValid, newEmptyVElement, parse, throwMessageExceptions
-
Constructor Details
-
ByMonthDay
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 -
ByMonthDay
-
ByMonthDay
-
-
Method Details
-
isValidValue
Description copied from class:ByRuleIntegerAbstractpredicate tests value range in listener attached toRRulePartBase.getValue()Ensures added values are within allowed range- Specified by:
isValidValuein classByRuleIntegerAbstract<ByMonthDay>
-
streamRecurrences
public Stream<Temporal> streamRecurrences(Stream<Temporal> inStream, ChronoUnit chronoUnit, Temporal dateTimeStart) Return stream of valid dates made by rule (infinite if COUNT or UNTIL not present)- Specified by:
streamRecurrencesin interfaceByRule<List<Integer>>- Overrides:
streamRecurrencesin classByRuleAbstract<Integer, ByMonthDay>- Parameters:
inStream- - Current stream to be added to or subtracted fromchronoUnit- - ChronoUnit of last modification to inStream- Returns:
-
extracted
-
parse
-