WeekDayCollection

Inheritance: java.lang.Object, java.util.AbstractCollection, java.util.AbstractList, com.aspose.tasks.AbstractList

public class WeekDayCollection extends AbstractList<WeekDay>

Represents a collection of WeekDay objects.

Methods

MethodDescription
add(WeekDay item)Adds a WeekDay instance to this object.
add(int index, WeekDay item)Inserts WeekDay at specified index.
clear()Clear the WeekDayCollection object.
contains(WeekDay item)Checks if collection contains WeekDay.specified.
copyTo(WeekDay[] array, int arrayIndex)Copies collection content to an array at specified index.
get(int index)(@inheritDoc}
indexOf(WeekDay item)Returns index of WeekDay specified.
isReadOnly(){@inheritDoc}
iterator()Returns an enumerator for this collection.
remove(int index){@inheritDoc}
remove(Object obj)Removes WeekDay specified, if any.
size()Gets the number of objects contained in this WeekDayCollection object.
toList()Converts the WeekDayCollection object to a list of WeekDay objects.

add(WeekDay item)

public final boolean add(WeekDay item)

Adds a WeekDay instance to this object.

Parameters:

ParameterTypeDescription
itemWeekDayThe item to add.

Returns: boolean - {@inheritDoc}

add(int index, WeekDay item)

public final void add(int index, WeekDay item)

Inserts WeekDay at specified index.

Parameters:

ParameterTypeDescription
indexintIndex to insert to.
itemWeekDayWeekDay to insert.

clear()

public final void clear()

Clear the WeekDayCollection object.

contains(WeekDay item)

public final boolean contains(WeekDay item)

Checks if collection contains WeekDay.specified.

Parameters:

ParameterTypeDescription
itemWeekDayThe item to check against to.

Returns: boolean - true, if collection contains item specified, of false otherwise.

copyTo(WeekDay[] array, int arrayIndex)

public final void copyTo(WeekDay[] array, int arrayIndex)

Copies collection content to an array at specified index.

Parameters:

ParameterTypeDescription
arrayWeekDay[]Destination array of WeekDay to copy to
arrayIndexintStarting index for copy operation.

get(int index)

public final WeekDay get(int index)

(@inheritDoc}

Parameters:

ParameterTypeDescription
indexint{@inheritDoc}

Returns: WeekDay - {@inheritDoc}

indexOf(WeekDay item)

public final int indexOf(WeekDay item)

Returns index of WeekDay specified.

Parameters:

ParameterTypeDescription
itemWeekDayThe item to check against to.

Returns: int - Zero-based index of WeekDay specified, if present, or -1 otherwise.

isReadOnly()

public final boolean isReadOnly()

Returns: boolean - {@inheritDoc}

iterator()

public final Iterator<WeekDay> iterator()

Returns an enumerator for this collection.

Returns: java.util.Iterator<com.aspose.tasks.WeekDay> - an enumerator for this collection.

remove(int index)

public final WeekDay remove(int index)

Parameters:

ParameterTypeDescription
indexint{@inheritDoc}

Returns: WeekDay - {@inheritDoc}

remove(Object obj)

public final boolean remove(Object obj)

Removes WeekDay specified, if any.

Parameters:

ParameterTypeDescription
objjava.lang.Object

Returns: boolean - True, if WeekDay was removed, false if such item was not found.

size()

public final int size()

Gets the number of objects contained in this WeekDayCollection object.

Returns: int - the number of objects contained in this WeekDayCollection object.

toList()

public final List<WeekDay> toList()

Converts the WeekDayCollection object to a list of WeekDay objects.

Returns: java.util.List<com.aspose.tasks.WeekDay> - List of WeekDay objects.