Package org.dmfs.rfc5545.recurrenceset
Class RecurrenceSet
java.lang.Object
org.dmfs.rfc5545.recurrenceset.RecurrenceSet
Deprecated.
A recurrence set. A recurrence set consists of all instances defined by a recurrence rule or a list if instances except for exception instances. Exception
instances are defined by exceptions rules or lists of exception instances.
This class allows you to add any number of recurrence rules, recurrence
instances, exception rules and exception instance. It returns an Iterator that iterates all resulting instances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExceptions(AbstractRecurrenceAdapter adapter) Deprecated.Add exceptions to the set of instances (i.e. effectively remove instances from the instance set).voidaddInstances(AbstractRecurrenceAdapter adapter) Deprecated.Add instances to the set of instances.longgetLastInstance(TimeZone timezone, long start) Deprecated.booleanDeprecated.Returns whether thisRecurrenceSetcontains an infinite number of instances.Deprecated.Get an iterator for the specified start time.Deprecated.Return a newRecurrenceSetIteratorfor this recurrence set.
-
Constructor Details
-
RecurrenceSet
public RecurrenceSet()Deprecated.
-
-
Method Details
-
addInstances
Deprecated.Add instances to the set of instances.- Parameters:
adapter- AnAbstractRecurrenceAdapterthat defines instances.
-
addExceptions
Deprecated.Add exceptions to the set of instances (i.e. effectively remove instances from the instance set).- Parameters:
adapter- AnAbstractRecurrenceAdapterthat defines instances.
-
iterator
Deprecated.Get an iterator for the specified start time.- Parameters:
timezone- TheTimeZoneof the first instance.start- The start time in milliseconds since the epoch.- Returns:
- A
RecurrenceSetIteratorthat iterates all instances.
-
iterator
Deprecated.Return a newRecurrenceSetIteratorfor this recurrence set.- Parameters:
timezone- TheTimeZoneof the first instance.start- The start time in milliseconds since the epoch.end- The end of the time range to iterate in milliseconds since the epoch.- Returns:
- A
RecurrenceSetIteratorthat iterates all instances.
-
isInfinite
public boolean isInfinite()Deprecated.Returns whether thisRecurrenceSetcontains an infinite number of instances.- Returns:
trueif the instances in thisRecurrenceSetis infinite,falseotherwise.
-
getLastInstance
Deprecated.
-