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 Summary
ConstructorsConstructorDescriptionCountLimitedRecurrenceRuleIterator(RecurrenceRuleIterator delegate, int remaining) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidfastForward(long until) Deprecated.Skip all instances tilluntil.booleanhasNext()Deprecated.Returnstrueif there is at least one more instance to iterate andfalseotherwise.longnext()Deprecated.Get the next instance (in milliseconds since the epoch) of this set.
-
Constructor Details
-
CountLimitedRecurrenceRuleIterator
Deprecated.
-
-
Method Details
-
hasNext
public boolean hasNext()Deprecated.Description copied from interface:InstanceIteratorReturnstrueif there is at least one more instance to iterate andfalseotherwise.- Specified by:
hasNextin interfaceInstanceIterator
-
next
public long next()Deprecated.Description copied from interface:InstanceIteratorGet the next instance (in milliseconds since the epoch) of this set. Do not call this ifInstanceIterator.hasNext()returnsfalse.- Specified by:
nextin interfaceInstanceIterator
-
fastForward
public void fastForward(long until) Deprecated.Description copied from interface:InstanceIteratorSkip all instances tilluntil. Ifuntilis an instance itself it will be the next iterated instance. If the rule doesn't recur till that date the next call toInstanceIterator.hasNext()will returnfalse.- Specified by:
fastForwardin interfaceInstanceIterator
-
CountLimitedRecurrenceRuleIterator