Class EmptyIterator

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

@Deprecated public final class EmptyIterator extends Object implements InstanceIterator
Deprecated.
in favour of EmptyIterator
An InstanceIterator without any instances.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final InstanceIterator
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fastForward(long until)
    Deprecated.
    Skip all instances till until.
    boolean
    Deprecated.
    Returns true if there is at least one more instance to iterate and false otherwise.
    long
    Deprecated.
    Get the next instance (in milliseconds since the epoch) of this set.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • EmptyIterator

      public EmptyIterator()
      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