
**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](../../com.aspose.tasks/workweek) objects.
## Methods

| Method | Description |
| --- | --- |
| [add(WorkWeek e)](#add-com.aspose.tasks.WorkWeek-) | Adds WorkWeek instance to this collection object. |
| [add(int index, WorkWeek element)](#add-int-com.aspose.tasks.WorkWeek-) | Inserts the specified element at the specified position in this list. |
| [clear()](#clear--) | \{@inheritDoc\} |
| [contains(Object o)](#contains-java.lang.Object-) | \{@inheritDoc\} |
| [get(int index)](#get-int-) | Returns the element at the specified index. |
| [getParentCalendar()](#getParentCalendar--) | Gets the parent calendar. |
| [indexOf(Object item)](#indexOf-java.lang.Object-) |  |
| [isReadOnly()](#isReadOnly--) | \{@inheritDoc\} |
| [iterator()](#iterator--) | Returns an enumerator for this collection. |
| [remove(Object item)](#remove-java.lang.Object-) |  |
| [size()](#size--) | Gets the number of objects contained in this [WorkWeekCollection](../../com.aspose.tasks/workweekcollection) object. |
| [toList()](#toList--) | Converts the WorkWeekCollection object to a list of [WorkWeek](../../com.aspose.tasks/workweek) objects. |
### add(WorkWeek e) {#add-com.aspose.tasks.WorkWeek-}
```
public final boolean add(WorkWeek e)
```


Adds WorkWeek instance to this collection object.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| e | [WorkWeek](../../com.aspose.tasks/workweek) | The item to add. |

**Returns:**
boolean - \{@inheritDoc\}
### add(int index, WorkWeek element) {#add-int-com.aspose.tasks.WorkWeek-}
```
public void add(int index, WorkWeek element)
```


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | \{@inheritDoc\} |
| element | [WorkWeek](../../com.aspose.tasks/workweek) | \{@inheritDoc\} |

### clear() {#clear--}
```
public final void clear()
```




### contains(Object o) {#contains-java.lang.Object-}
```
public final boolean contains(Object o)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| o | java.lang.Object | \{@inheritDoc\} |

**Returns:**
boolean - \{@inheritDoc\}
### get(int index) {#get-int-}
```
public WorkWeek get(int index)
```


Returns the element at the specified index.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | The zero-based index of the element to get. |

**Returns:**
[WorkWeek](../../com.aspose.tasks/workweek) - the element at the specified index.
### getParentCalendar() {#getParentCalendar--}
```
public final Calendar getParentCalendar()
```


Gets the parent calendar.

**Returns:**
[Calendar](../../com.aspose.tasks/calendar) - the parent calendar.
### indexOf(Object item) {#indexOf-java.lang.Object-}
```
public final int indexOf(Object item)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | java.lang.Object |  |

**Returns:**
int
### isReadOnly() {#isReadOnly--}
```
public final boolean isReadOnly()
```




**Returns:**
boolean - \{@inheritDoc\}
### iterator() {#iterator--}
```
public final Iterator<WorkWeek> iterator()
```


Returns an enumerator for this collection.

**Returns:**
java.util.Iterator&lt;com.aspose.tasks.WorkWeek&gt; - an enumerator for this collection.
### remove(Object item) {#remove-java.lang.Object-}
```
public final boolean remove(Object item)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | java.lang.Object |  |

**Returns:**
boolean
### size() {#size--}
```
public final int size()
```


Gets the number of objects contained in this [WorkWeekCollection](../../com.aspose.tasks/workweekcollection) object.

**Returns:**
int - the number of objects contained in this [WorkWeekCollection](../../com.aspose.tasks/workweekcollection) object.
### toList() {#toList--}
```
public final List<WorkWeek> toList()
```


Converts the WorkWeekCollection object to a list of [WorkWeek](../../com.aspose.tasks/workweek) objects.

**Returns:**
java.util.List&lt;com.aspose.tasks.WorkWeek&gt; - List of [WorkWeek](../../com.aspose.tasks/workweek) objects.
