Note: Assuming a Monday week start, week 53 can only occur when Thursday is January 1 or if it is a leap year and Wednesday is January 1.
public class ByWeekNumber extends ByRuleIntegerAbstract<ByWeekNumber>
By Week Number BYWEEKNO RFC 5545, iCalendar 3.3.10, page 42
The BYWEEKNO rule part specifies a COMMA-separated list of ordinals specifying weeks of the year. Valid values are 1 to 53 or -53 to -1. This corresponds to weeks according to week numbering as defined in [ISO.8601.2004]. A week is defined as a seven day period, starting on the day of the week defined to be the week start (see WKST). Week number one of the calendar year is the first week that contains at least four (4) days in that calendar year. This rule part MUST NOT be used when the FREQ rule part is set to anything other than YEARLY. For example, 3 represents the third week of the year.
Note: Assuming a Monday week start, week 53 can only occur when Thursday is January 1 or if it is a leap year and Wednesday is January 1.
Type | Property and Description |
---|---|
javafx.beans.property.ObjectProperty<java.time.DayOfWeek> |
weekStart
Start of week - default start of week is Monday
|
valueProperty
valueProperty
Constructor and Description |
---|
ByWeekNumber() |
ByWeekNumber(ByWeekNumber source) |
ByWeekNumber(java.lang.Integer... weekNumbers) |
Modifier and Type | Method and Description |
---|---|
java.time.DayOfWeek |
getWeekStart() |
static ByWeekNumber |
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)
New stream of date/times made after applying rule that either filters out some date/times
or adds additional date/times.
|
javafx.beans.property.ObjectProperty<java.time.DayOfWeek> |
weekStartProperty()
Start of week - default start of week is Monday
|
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 javafx.beans.property.ObjectProperty<java.time.DayOfWeek> weekStartProperty
Start of week - default start of week is Monday
getWeekStart()
public ByWeekNumber()
public ByWeekNumber(java.lang.Integer... weekNumbers)
public ByWeekNumber(ByWeekNumber source)
public javafx.beans.property.ObjectProperty<java.time.DayOfWeek> weekStartProperty()
Start of week - default start of week is Monday
getWeekStart()
public java.time.DayOfWeek getWeekStart()
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)
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.lang.Integer>>
streamRecurrences
in class ByRuleAbstract<java.lang.Integer,ByWeekNumber>
inStream
- - Current stream to be added to or subtracted fromchronoUnit
- - ChronoUnit of last modification to inStreampublic static ByWeekNumber parse(java.lang.String content)