ByDayCollection
Inheritance: java.lang.Object, com.aspose.ms.System.Collections.ObjectModel.Collection
public class ByDayCollection extends System.Collections.ObjectModel.Collection<ByDay>
Represents a collection of ByDay objects.
Corresponds to the BYDAY part of the recurrence rule.
The BYDAY rule specifies a list of days of the week for a monthly or yearly recurrence rule.
For each day of the week, a specific Nth occurrence or all occurrences can be specified.
Methods
add(ByDay byDay)
public final int add(ByDay byDay)
Adds a ByDay to the collection.
Parameters:
Parameter | Type | Description |
---|---|---|
byDay | ByDay | The item to add to the collection. |
Returns: int - The zero-based index of the newly added item.
add(int dayOfWeek)
public final int add(int dayOfWeek)
Creates and adds a ByDay that represents all occurrences of the day of the week to the collection.
Parameters:
Parameter | Type | Description |
---|---|---|
dayOfWeek | int | A day of the week. |
Returns: int - The zero-based index of the newly added item.
add(int nthOccurrence, int dayOfWeek)
public final int add(int nthOccurrence, int dayOfWeek)
Creates and adds a ByDay to the collection.
Parameters:
Parameter | Type | Description |
---|---|---|
nthOccurrence | int | The nth occurrence of the day of the week. |
dayOfWeek | int | A day of the week. |
Returns: int - The zero-based index of the newly added item.
addItem(T arg0)
public void addItem(T arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | T |
clear()
public void clear()
contains(int dayOfWeek)
public final boolean contains(int dayOfWeek)
Returns a value indicating whether a specified day of week is present in the collection.
Parameters:
Parameter | Type | Description |
---|---|---|
dayOfWeek | int | Day of weekDayOfWeek. |
Returns: boolean - True if the value parameter exists within this collection, otherwise false.
containsItem(T arg0)
public boolean containsItem(T arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | T |
Returns: boolean
copyToTArray(T[] arg0, int arg1)
public void copyToTArray(T[] arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | T[] | |
arg1 | int |
equals(ByDayCollection other)
public boolean equals(ByDayCollection other)
Determines whether the specified ByDayCollection is equal to this instance.
Parameters:
Parameter | Type | Description |
---|---|---|
other | ByDayCollection | The ByDayCollection to compare with this instance. |
Returns: boolean - true if the specified ByDayCollection is equal to this instance; otherwise, false .
equals(Object obj)
public boolean equals(Object obj)
Determines whether the specified Object is equal to the current Object.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object | The Object to compare with the current Object. |
Returns: boolean - Returns a boolean indicating if the passed in object obj is Equal to this.
get(int index)
public ByDay get(int index)
Gets or sets a ByDay from the collection.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | a int. |
Returns: ByDay - a ByDay object.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getICollection()
public System.Collections.ICollection getICollection()
Returns: com.aspose.ms.System.Collections.ICollection
getIList()
public System.Collections.IList getIList()
Returns: com.aspose.ms.System.Collections.IList
getSyncRoot()
public Object getSyncRoot()
Returns: java.lang.Object
get_Item(int arg0)
public T get_Item(int arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | int |
Returns: T
hashCode()
public int hashCode()
GetHashCode returns a hash function for this object.
Returns: int - Returns a hash function for this object.
indexOfItem(T arg0)
public int indexOfItem(T arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | T |
Returns: int
insertItem(int arg0, T arg1)
public void insertItem(int arg0, T arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | int | |
arg1 | T |
isReadOnly()
public boolean isReadOnly()
Returns: boolean
iterator()
public System.Collections.Generic.IGenericEnumerator<T> iterator()
Returns:
com.aspose.ms.System.Collections.Generic.IGenericEnumerator
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
removeAt(int arg0)
public void removeAt(int arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | int |
removeItem(T arg0)
public boolean removeItem(T arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | T |
Returns: boolean
set(int index, ByDay value)
public void set(int index, ByDay value)
Gets or sets a ByDay from the collection.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | a int. |
value | ByDay | a ByDay object. |
set_Item(int arg0, T arg1)
public void set_Item(int arg0, T arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | int | |
arg1 | T |
size()
public int size()
Returns: int
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |