Class CountLimitedRecurrenceRuleIterator
java.lang.Object
org.dmfs.rfc5545.instanceiterator.CountLimitedRecurrenceRuleIterator
- All Implemented Interfaces:
Iterator<org.dmfs.rfc5545.DateTime>,InstanceIterator
An
InstanceIterator which limits the number of iterated instances.-
Constructor Summary
ConstructorsConstructorDescriptionCountLimitedRecurrenceRuleIterator(RecurrenceRuleIterator delegate, int remaining) -
Method Summary
Modifier and TypeMethodDescriptionvoidfastForward(org.dmfs.rfc5545.DateTime until) Skip all occurrences untiluntil.booleanhasNext()org.dmfs.rfc5545.DateTimenext()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
CountLimitedRecurrenceRuleIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
public org.dmfs.rfc5545.DateTime next() -
fastForward
public void fastForward(org.dmfs.rfc5545.DateTime until) Description copied from interface:InstanceIteratorSkip all occurrences untiluntil. Ifuntilis an occurrence itself it will be the next iterated occurrence. If the rule doesn't recur till that date the next call toIterator.hasNext()will returnfalse.- Specified by:
fastForwardin interfaceInstanceIterator
-