public class RecurrenceSetIterator
extends java.lang.Object
AbstractRecurrenceAdapters for instances and exceptions and iterates all resulting instances
(i.e. only the instances, not the exceptions). This class doesn't implement the AbstractRecurrenceAdapter.InstanceIterator interface for one reasons:
AbstractRecurrenceAdapter.InstanceIterator always returns an Object, so instead of a primitive long we would have to return a Long. That is an
additional object which doesn't have any advantage.| Modifier and Type | Method and Description |
|---|---|
void |
fastForward(long until)
Fast forward to the next instance at or after the given date.
|
boolean |
hasNext()
Check if there is at least one more instance to iterate.
|
long |
next()
Get the next instance of this set.
|
public boolean hasNext()
true if the next call to next() will return another instance, false otherwise.public long next()
hasNext() returns false.java.lang.ArrayIndexOutOfBoundsException - if there are no more instances.public void fastForward(long until)
until - The date to fast forward to in milliseconds since the epoch.