Class Merged

java.lang.Object
org.dmfs.rfc5545.instanceiterator.Merged
All Implemented Interfaces:
Iterator<org.dmfs.rfc5545.DateTime>, InstanceIterator

public final class Merged extends Object implements InstanceIterator
An InstanceIterator which iterates the elements of other InstanceIterator in chronological order.
  • Constructor Details

  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<org.dmfs.rfc5545.DateTime>
    • next

      public org.dmfs.rfc5545.DateTime next()
      Specified by:
      next in interface Iterator<org.dmfs.rfc5545.DateTime>
    • fastForward

      public void fastForward(org.dmfs.rfc5545.DateTime until)
      Description copied from interface: InstanceIterator
      Skip all occurrences until until. If until is an occurrence itself it will be the next iterated occurrence. If the rule doesn't recur till that date the next call to Iterator.hasNext() will return false.
      Specified by:
      fastForward in interface InstanceIterator