public class ByMonth extends ByRuleAbstract<java.time.Month,ByMonth>
BYMONTH from RFC 5545, iCalendar 3.3.10, page 42
valueProperty
valueProperty
Constructor and Description |
---|
ByMonth() |
ByMonth(ByMonth source) |
ByMonth(int... months) |
ByMonth(java.time.Month... months) |
Modifier and Type | Method and Description |
---|---|
java.time.temporal.ChronoUnit |
getChronoUnit() |
static ByMonth |
parse(java.lang.String content) |
java.util.List<java.lang.String> |
parseContent(java.lang.String content)
Parse content line into calendar element.
|
void |
setValue(int... months)
sorted array of months to be included
January = 1 - December = 12
Uses a varargs parameter to allow any number of months
|
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 startTemporal)
New stream of date/times made after applying rule that either filters out some date/times
or adds additional date/times.
|
java.lang.String |
toContent()
return element name-value pair string separated by an "="
for example:
FREQ=DAILY
|
ByMonth |
withValue(int... months) |
compareTo, equals, errors, hashCode, setValue, setValue, setValue, toString, withValue, withValue
elementType, getParent, getValue, name, setParent, valueProperty, withValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
elementType, getValue, valueProperty
public ByMonth()
public ByMonth(int... months)
public ByMonth(java.time.Month... months)
public ByMonth(ByMonth source)
public java.time.temporal.ChronoUnit getChronoUnit()
public void setValue(int... months)
sorted array of months to be included January = 1 - December = 12 Uses a varargs parameter to allow any number of months
public ByMonth withValue(int... months)
public java.lang.String toContent()
RRuleElement
return element name-value pair string separated by an "=" for example: FREQ=DAILY
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 startTemporal)
ByRule
New stream of date/times made after applying rule that either filters out some date/times or adds additional date/times.
streamRecurrences
in interface ByRule<javafx.collections.ObservableList<java.time.Month>>
streamRecurrences
in class ByRuleAbstract<java.time.Month,ByMonth>
inStream
- - Current stream to be added to or subtracted fromchronoUnit
- - ChronoUnit of last modification to inStreampublic java.util.List<java.lang.String> parseContent(java.lang.String content)
VElement
Parse content line into calendar element.
If element contains children VElement.parseContent(String)
is invoked recursively to parse child elements also
content
- calendar content string to parsepublic static ByMonth parse(java.lang.String content)