Class Merged
java.lang.Object
org.dmfs.rfc5545.instanceiterator.Merged
- All Implemented Interfaces:
Iterator<org.dmfs.rfc5545.DateTime>,InstanceIterator
An
InstanceIterator which iterates the elements of other InstanceIterator in chronological order.-
Constructor Summary
ConstructorsConstructorDescriptionMerged(Iterable<InstanceIterator> delegates) Merged(InstanceIterator... delegates) -
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
-
Merged
-
Merged
-
-
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
-