public class ByDayCollection extends com.aspose.ms.System.Collections.ObjectModel.Collection<ByDay>
Represents a collection of ByDay objects.
<p>Corresponds to the BYDAY part of the recurrence rule.</p>
<p>The BYDAY rule specifies a list of days of the week for a monthly or yearly recurrence rule.</p>
<p>For each day of the week, a specific Nth occurrence or all occurrences can be specified.</p>
| Modifier and Type | Method and Description |
|---|---|
int |
add(ByDay byDay)
Adds a
ByDay to the collection. |
int |
add(int dayOfWeek)
Creates and adds a
ByDay that represents all occurrences of the day of the week to the collection. |
int |
add(int nthOccurrence,
int dayOfWeek)
Creates and adds a
ByDay to the collection. |
boolean |
contains(int dayOfWeek)
Returns a value indicating whether a specified day of week is present in the collection.
|
boolean |
equals(ByDayCollection other)
Determines whether the specified
ByDayCollection is equal to this instance. |
boolean |
equals(Object obj)
Determines whether the specified Object is equal to the current Object.
|
ByDay |
get(int index)
Gets or sets a
ByDay from the collection. |
int |
hashCode()
GetHashCode returns a hash function for this object.
|
void |
set(int index,
ByDay value)
Gets or sets a
ByDay from the collection. |
public final int add(ByDay byDay)
Adds a ByDay to the collection.
byDay - The item to add to the collection.public final int add(int dayOfWeek)
Creates and adds a ByDay that represents all occurrences of the day of the week to the collection.
dayOfWeek - A day of the week.public final int add(int nthOccurrence,
int dayOfWeek)
Creates and adds a ByDay to the collection.
nthOccurrence - The nth occurrence of the day of the week.dayOfWeek - A day of the week.public ByDay get(int index)
Gets or sets a ByDay from the collection.
index - a int.ByDay object.public void set(int index,
ByDay value)
Gets or sets a ByDay from the collection.
index - a int.value - a ByDay object.public final boolean contains(int dayOfWeek)
Returns a value indicating whether a specified day of week is present in the collection.
dayOfWeek - Day of weekDayOfWeek.public boolean equals(ByDayCollection other)
Determines whether the specified ByDayCollection is equal to this instance.
other - The ByDayCollection to compare with this instance.true if the specified ByDayCollection is equal to this instance; otherwise, false.public boolean equals(Object obj)
Determines whether the specified Object is equal to the current Object.