public final class CountLimitedRecurrenceRuleIterator
extends java.lang.Object
AbstractRecurrenceAdapter.InstanceIterator which inserts a start instance.| Constructor and Description |
|---|
CountLimitedRecurrenceRuleIterator(org.dmfs.rfc5545.recurrenceset.AbstractRecurrenceAdapter.InstanceIterator delegate,
int remaining) |
| Modifier and Type | Method and Description |
|---|---|
void |
fastForward(long until)
Skip all instances till
until. |
boolean |
hasNext()
Check if there is at least one more instance to iterate.
|
long |
next()
Get the next instance of this set.
|
long |
peek()
Peek at the upcoming instance without actually iterating it.
|
void |
skip(int count)
Skip the given number of instances.
|
public CountLimitedRecurrenceRuleIterator(org.dmfs.rfc5545.recurrenceset.AbstractRecurrenceAdapter.InstanceIterator delegate,
int remaining)
public boolean hasNext()
true if the next call to next() will return another instance, false otherwise.public long next()
hasNext() returns false.public long peek()
hasNext() to check if there are any more instances before calling this
method.public void skip(int count)
count - The number of instances to skip.public void fastForward(long until)
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 hasNext() will return false.until - A time stamp of the date to fast forward to.