Class FastForwardable
java.lang.Object
org.dmfs.rfc5545.instanceiterator.FastForwardable
- All Implemented Interfaces:
Iterator<org.dmfs.rfc5545.DateTime>,InstanceIterator
-
Constructor Summary
ConstructorsConstructorDescriptionFastForwardable(org.dmfs.rfc5545.DateTime firstInstance, Iterator<org.dmfs.rfc5545.DateTime> delegate) -
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
-
FastForwardable
public FastForwardable(org.dmfs.rfc5545.DateTime firstInstance, Iterator<org.dmfs.rfc5545.DateTime> delegate)
-
-
Method Details
-
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
-
hasNext
public boolean hasNext() -
next
public org.dmfs.rfc5545.DateTime next()
-