public class ByMonthDay extends ByRuleAbstract
BYMONTHDAY from RFC 5545, iCalendar
Constructor and Description |
---|
ByMonthDay() |
ByMonthDay(ByRule source) |
ByMonthDay(int... daysOfMonth)
Constructor contains varargs of daysOfMonth
|
ByMonthDay(java.lang.String daysOfMonthString)
Constructor takes String of comma-delimited integers, parses it to array of ints
|
Modifier and Type | Method and Description |
---|---|
void |
copyTo(ByRule destination) |
boolean |
equals(java.lang.Object obj) |
int[] |
getDaysOfMonth()
sorted array of days of month
(i.e.
|
int |
hashCode() |
void |
setDaysOfMonth(int... daysOfMonth) |
java.util.stream.Stream<java.time.temporal.Temporal> |
stream(java.util.stream.Stream<java.time.temporal.Temporal> inStream,
javafx.beans.property.ObjectProperty<java.time.temporal.ChronoUnit> chronoUnit,
java.time.temporal.Temporal startTemporal)
Return stream of valid dates made by rule (infinite if COUNT or UNTIL not present)
|
java.lang.String |
toString() |
ByRule |
withDaysOfMonth(int... daysOfMonth) |
byRuleType, compareTo
public ByMonthDay()
public ByMonthDay(java.lang.String daysOfMonthString)
Constructor takes String of comma-delimited integers, parses it to array of ints
public ByMonthDay(int... daysOfMonth)
Constructor contains varargs of daysOfMonth
public ByMonthDay(ByRule source)
public int[] getDaysOfMonth()
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 void setDaysOfMonth(int... daysOfMonth)
public ByRule withDaysOfMonth(int... daysOfMonth)
public void copyTo(ByRule destination)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.stream.Stream<java.time.temporal.Temporal> stream(java.util.stream.Stream<java.time.temporal.Temporal> inStream, javafx.beans.property.ObjectProperty<java.time.temporal.ChronoUnit> chronoUnit, java.time.temporal.Temporal startTemporal)
Return stream of valid dates made by rule (infinite if COUNT or UNTIL not present)
inStream
- - Current stream to be added to or subtracted fromchronoUnit
- - ChronoUnit of last modification to inStreamstartTemporal
- - start Temporal (date or date/time)