WorkWeekCollection

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

public class WorkWeekCollection extends AbstractList<WorkWeek>

Represents a collection of WorkWeek objects.

Methods

MethodDescription
add(WorkWeek e)Adds WorkWeek instance to this collection object.
add(int index, WorkWeek element)Inserts the specified element at the specified position in this list.
clear(){@inheritDoc}
contains(Object o){@inheritDoc}
get(int index)Returns the element at the specified index.
getParentCalendar()Gets the parent calendar.
indexOf(Object item)
isReadOnly(){@inheritDoc}
iterator()Returns an enumerator for this collection.
remove(Object item)
size()Gets the number of objects contained in this WorkWeekCollection object.
toList()Converts the WorkWeekCollection object to a list of WorkWeek objects.

add(WorkWeek e)

public final boolean add(WorkWeek e)

Adds WorkWeek instance to this collection object.

Parameters:

ParameterTypeDescription
eWorkWeekThe item to add.

Returns: boolean - {@inheritDoc}

add(int index, WorkWeek element)

public void add(int index, WorkWeek element)

Inserts the specified element at the specified position in this list.

Parameters:

ParameterTypeDescription
indexint{@inheritDoc}
elementWorkWeek{@inheritDoc}

clear()

public final void clear()

contains(Object o)

public final boolean contains(Object o)

Parameters:

ParameterTypeDescription
ojava.lang.Object{@inheritDoc}

Returns: boolean - {@inheritDoc}

get(int index)

public WorkWeek get(int index)

Returns the element at the specified index.

Parameters:

ParameterTypeDescription
indexintThe zero-based index of the element to get.

Returns: WorkWeek - the element at the specified index.

getParentCalendar()

public final Calendar getParentCalendar()

Gets the parent calendar.

Returns: Calendar - the parent calendar.

indexOf(Object item)

public final int indexOf(Object item)

Parameters:

ParameterTypeDescription
itemjava.lang.Object

Returns: int

isReadOnly()

public final boolean isReadOnly()

Returns: boolean - {@inheritDoc}

iterator()

public final Iterator<WorkWeek> iterator()

Returns an enumerator for this collection.

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

remove(Object item)

public final boolean remove(Object item)

Parameters:

ParameterTypeDescription
itemjava.lang.Object

Returns: boolean

size()

public final int size()

Gets the number of objects contained in this WorkWeekCollection object.

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

toList()

public final List<WorkWeek> toList()

Converts the WorkWeekCollection object to a list of WorkWeek objects.

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