Module jfxtras.icalendarfx
Class ByHour
java.lang.Object
jfxtras.icalendarfx.VElementBase
jfxtras.icalendarfx.properties.component.recurrence.rrule.RRulePartBase<List<T>,U>
jfxtras.icalendarfx.properties.component.recurrence.rrule.byxxx.ByRuleAbstract<Integer,U>
jfxtras.icalendarfx.properties.component.recurrence.rrule.byxxx.ByRuleIntegerAbstract<ByHour>
jfxtras.icalendarfx.properties.component.recurrence.rrule.byxxx.ByHour
- All Implemented Interfaces:
Comparable<ByRule<List<Integer>>>
,ByRule<List<Integer>>
,RRulePart<List<Integer>>
,VChild
,VElement
By Hour
BYHOUR
RFC 5545, iCalendar 3.3.10, page 41
The BYHOUR rule part specifies a COMMA-
separated list of hours of the day. Valid values are 0 to 23.
The BYSECOND, BYMINUTE and BYHOUR rule parts MUST NOT be specified
when the associated "DTSTART" property has a DATE value type.
These rule parts MUST be ignored in RECUR value that violate the
above requirement (e.g., generated by applications that pre-date
this revision of iCalendar).
-
Nested Class Summary
Nested classes/interfaces inherited from class jfxtras.icalendarfx.VElementBase
VElementBase.Message, VElementBase.MessageEffect
-
Field Summary
Fields inherited from class jfxtras.icalendarfx.properties.component.recurrence.rrule.RRulePartBase
elementType
Fields inherited from class jfxtras.icalendarfx.VElementBase
BEGIN, END
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpredicate tests value range in listener attached toRRulePartBase.getValue()
Ensures added values are within allowed rangestatic ByHour
streamRecurrences
(Stream<Temporal> inStream, ChronoUnit chronoUnit, Temporal dateTimeStart) New stream of date/times made after applying rule that either filters out some date/times or adds additional date/times.Methods inherited from class jfxtras.icalendarfx.properties.component.recurrence.rrule.byxxx.ByRuleIntegerAbstract
errors, parseContent, setValue, toString
Methods inherited from class jfxtras.icalendarfx.properties.component.recurrence.rrule.byxxx.ByRuleAbstract
compareTo, setValue, setValue, withValue, withValue
Methods inherited from class jfxtras.icalendarfx.properties.component.recurrence.rrule.RRulePartBase
equals, extractValue, getParent, getValue, hashCode, name, setParent, withValue
Methods inherited from class jfxtras.icalendarfx.VElementBase
elementName, isContentValid, newEmptyVElement, parse, throwMessageExceptions
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ByHour
public ByHour() -
ByHour
-
ByHour
-
-
Method Details
-
isValidValue
Description copied from class:ByRuleIntegerAbstract
predicate tests value range in listener attached toRRulePartBase.getValue()
Ensures added values are within allowed range- Specified by:
isValidValue
in classByRuleIntegerAbstract<ByHour>
-
streamRecurrences
public Stream<Temporal> streamRecurrences(Stream<Temporal> inStream, ChronoUnit chronoUnit, Temporal dateTimeStart) Description copied from interface:ByRule
New stream of date/times made after applying rule that either filters out some date/times or adds additional date/times.- Specified by:
streamRecurrences
in interfaceByRule<List<Integer>>
- Overrides:
streamRecurrences
in classByRuleAbstract<Integer,
ByHour> - Parameters:
inStream
- - Current stream to be added to or subtracted fromchronoUnit
- - ChronoUnit of last modification to inStream- Returns:
-
parse
-