Package org.dmfs.rfc5545.recurrenceset
Class OfRuleAndFirst
java.lang.Object
org.dmfs.rfc5545.recurrenceset.OfRuleAndFirst
- All Implemented Interfaces:
Iterable<org.dmfs.rfc5545.DateTime>,RecurrenceSet
The
RecurrenceSet of a single RecurrenceRule that also returns any non-synchronized first instance.-
Constructor Summary
ConstructorsConstructorDescriptionOfRuleAndFirst(RecurrenceRule rule, org.dmfs.rfc5545.DateTime first) Create a new adapter for the given rule and start. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether thisRecurrenceSetis infinite or not.iterator()Returns anInstanceIteratorfor thisRecurrenceSet.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
OfRuleAndFirst
Create a new adapter for the given rule and start.- Parameters:
rule- The recurrence rule to adapt to.
-
-
Method Details
-
iterator
Description copied from interface:RecurrenceSetReturns anInstanceIteratorfor thisRecurrenceSet.- Specified by:
iteratorin interfaceIterable<org.dmfs.rfc5545.DateTime>- Specified by:
iteratorin interfaceRecurrenceSet
-
isInfinite
public boolean isInfinite()Description copied from interface:RecurrenceSetReturns whether thisRecurrenceSetis infinite or not.- Specified by:
isInfinitein interfaceRecurrenceSet
-