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

MethodDescription
add(ByDay byDay)Adds a ByDay to the collection.
add(int dayOfWeek)Creates and adds a ByDay that represents all occurrences of the day of the week to the collection.
add(int nthOccurrence, int dayOfWeek)Creates and adds a ByDay to the collection.
addItem(T arg0)
clear()
contains(int dayOfWeek)Returns a value indicating whether a specified day of week is present in the collection.
containsItem(T arg0)
copyToTArray(T[] arg0, int arg1)
equals(ByDayCollection other)Determines whether the specified ByDayCollection is equal to this instance.
equals(Object obj)Determines whether the specified Object is equal to the current Object.
get(int index)Gets or sets a ByDay from the collection.
getClass()
getICollection()
getIList()
getSyncRoot()
get_Item(int arg0)
hashCode()GetHashCode returns a hash function for this object.
indexOfItem(T arg0)
insertItem(int arg0, T arg1)
isReadOnly()
iterator()
notify()
notifyAll()
removeAt(int arg0)
removeItem(T arg0)
set(int index, ByDay value)Gets or sets a ByDay from the collection.
set_Item(int arg0, T arg1)
size()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

add(ByDay byDay)

public final int add(ByDay byDay)

Adds a ByDay to the collection.

Parameters:

ParameterTypeDescription
byDayByDayThe 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:

ParameterTypeDescription
dayOfWeekintA 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:

ParameterTypeDescription
nthOccurrenceintThe nth occurrence of the day of the week.
dayOfWeekintA day of the week.

Returns: int - The zero-based index of the newly added item.

addItem(T arg0)

public void addItem(T arg0)

Parameters:

ParameterTypeDescription
arg0T

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:

ParameterTypeDescription
dayOfWeekintDay of weekDayOfWeek.

Returns: boolean - True if the value parameter exists within this collection, otherwise false.

containsItem(T arg0)

public boolean containsItem(T arg0)

Parameters:

ParameterTypeDescription
arg0T

Returns: boolean

copyToTArray(T[] arg0, int arg1)

public void copyToTArray(T[] arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0T[]
arg1int

equals(ByDayCollection other)

public boolean equals(ByDayCollection other)

Determines whether the specified ByDayCollection is equal to this instance.

Parameters:

ParameterTypeDescription
otherByDayCollectionThe 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:

ParameterTypeDescription
objjava.lang.ObjectThe 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:

ParameterTypeDescription
indexinta 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:

ParameterTypeDescription
arg0int

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:

ParameterTypeDescription
arg0T

Returns: int

insertItem(int arg0, T arg1)

public void insertItem(int arg0, T arg1)

Parameters:

ParameterTypeDescription
arg0int
arg1T

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:

ParameterTypeDescription
arg0int

removeItem(T arg0)

public boolean removeItem(T arg0)

Parameters:

ParameterTypeDescription
arg0T

Returns: boolean

set(int index, ByDay value)

public void set(int index, ByDay value)

Gets or sets a ByDay from the collection.

Parameters:

ParameterTypeDescription
indexinta int.
valueByDaya ByDay object.

set_Item(int arg0, T arg1)

public void set_Item(int arg0, T arg1)

Parameters:

ParameterTypeDescription
arg0int
arg1T

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:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int