Class CountLimitedRecurrenceRuleIterator

java.lang.Object
org.dmfs.rfc5545.iterable.instanceiterator.CountLimitedRecurrenceRuleIterator
All Implemented Interfaces:
InstanceIterator

@Deprecated public final class CountLimitedRecurrenceRuleIterator extends Object implements InstanceIterator
Deprecated.
An InstanceIterator which limits the number of iterated instances.
  • Constructor Details

    • CountLimitedRecurrenceRuleIterator

      public CountLimitedRecurrenceRuleIterator(RecurrenceRuleIterator delegate, int remaining)
      Deprecated.
  • Method Details

    • hasNext

      public boolean hasNext()
      Deprecated.
      Description copied from interface: InstanceIterator
      Returns true if there is at least one more instance to iterate and false otherwise.
      Specified by:
      hasNext in interface InstanceIterator
    • next

      public long next()
      Deprecated.
      Description copied from interface: InstanceIterator
      Get the next instance (in milliseconds since the epoch) of this set. Do not call this if InstanceIterator.hasNext() returns false.
      Specified by:
      next in interface InstanceIterator
    • fastForward

      public void fastForward(long until)
      Deprecated.
      Description copied from interface: InstanceIterator
      Skip all instances till until. If until is an instance itself it will be the next iterated instance. If the rule doesn't recur till that date the next call to InstanceIterator.hasNext() will return false.
      Specified by:
      fastForward in interface InstanceIterator