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

**All Implemented Interfaces:**
java.lang.Iterable
```
public class WeekDayCollection extends AbstractList<WeekDay> implements Iterable<WeekDay>
```

Represents a collection of [WeekDay](../../com.aspose.tasks/weekday) objects.
## Methods

| Method | Description |
| --- | --- |
| [add(WeekDay item)](#add-com.aspose.tasks.WeekDay-) | Adds a [WeekDay](../../com.aspose.tasks/weekday) instance to this object. |
| [add(int index, WeekDay item)](#add-int-com.aspose.tasks.WeekDay-) | Inserts [WeekDay](../../com.aspose.tasks/weekday) at specified index. |
| [clear()](#clear--) | Clear the WeekDayCollection object. |
| [contains(WeekDay item)](#contains-com.aspose.tasks.WeekDay-) | Checks if collection contains [WeekDay](../../com.aspose.tasks/weekday).specified. |
| [copyTo(WeekDay[] array, int arrayIndex)](#copyTo-com.aspose.tasks.WeekDay---int-) | Copies collection content to an array at specified index. |
| [get(int index)](#get-int-) | (@inheritDoc\} |
| [indexOf(WeekDay item)](#indexOf-com.aspose.tasks.WeekDay-) | Returns index of [WeekDay](../../com.aspose.tasks/weekday) specified. |
| [isReadOnly()](#isReadOnly--) | \{@inheritDoc\} |
| [iterator()](#iterator--) | Returns an enumerator for this collection. |
| [remove(int index)](#remove-int-) | \{@inheritDoc\} |
| [remove(Object obj)](#remove-java.lang.Object-) | Removes [WeekDay](../../com.aspose.tasks/weekday) specified, if any. |
| [size()](#size--) | Gets the number of objects contained in this [WeekDayCollection](../../com.aspose.tasks/weekdaycollection) object. |
| [toList()](#toList--) | Converts the WeekDayCollection object to a list of [WeekDay](../../com.aspose.tasks/weekday) objects. |
### add(WeekDay item) {#add-com.aspose.tasks.WeekDay-}
```
public final boolean add(WeekDay item)
```


Adds a [WeekDay](../../com.aspose.tasks/weekday) instance to this object.

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

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


Inserts [WeekDay](../../com.aspose.tasks/weekday) at specified index.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | Index to insert to. |
| item | [WeekDay](../../com.aspose.tasks/weekday) | [WeekDay](../../com.aspose.tasks/weekday) to insert. |

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


Clear the WeekDayCollection object.

### contains(WeekDay item) {#contains-com.aspose.tasks.WeekDay-}
```
public final boolean contains(WeekDay item)
```


Checks if collection contains [WeekDay](../../com.aspose.tasks/weekday).specified.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | [WeekDay](../../com.aspose.tasks/weekday) | The item to check against to. |

**Returns:**
boolean - true, if collection contains item specified, of false otherwise.
### copyTo(WeekDay[] array, int arrayIndex) {#copyTo-com.aspose.tasks.WeekDay---int-}
```
public final void copyTo(WeekDay[] array, int arrayIndex)
```


Copies collection content to an array at specified index.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| array | [WeekDay\[\]](../../com.aspose.tasks/weekday) | Destination array of [WeekDay](../../com.aspose.tasks/weekday) to copy to |
| arrayIndex | int | Starting index for copy operation. |

### get(int index) {#get-int-}
```
public final WeekDay get(int index)
```


(@inheritDoc\}

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | \{@inheritDoc\} |

**Returns:**
[WeekDay](../../com.aspose.tasks/weekday) - \{@inheritDoc\}
### indexOf(WeekDay item) {#indexOf-com.aspose.tasks.WeekDay-}
```
public final int indexOf(WeekDay item)
```


Returns index of [WeekDay](../../com.aspose.tasks/weekday) specified.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | [WeekDay](../../com.aspose.tasks/weekday) | The item to check against to. |

**Returns:**
int - Zero-based index of [WeekDay](../../com.aspose.tasks/weekday) specified, if present, or -1 otherwise.
### isReadOnly() {#isReadOnly--}
```
public final boolean isReadOnly()
```




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


Returns an enumerator for this collection.

**Returns:**
java.util.Iterator&lt;com.aspose.tasks.WeekDay&gt; - an enumerator for this collection.
### remove(int index) {#remove-int-}
```
public final WeekDay remove(int index)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | \{@inheritDoc\} |

**Returns:**
[WeekDay](../../com.aspose.tasks/weekday) - \{@inheritDoc\}
### remove(Object obj) {#remove-java.lang.Object-}
```
public final boolean remove(Object obj)
```


Removes [WeekDay](../../com.aspose.tasks/weekday) specified, if any.

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

**Returns:**
boolean - True, if [WeekDay](../../com.aspose.tasks/weekday) was removed, false if such item was not found.
### size() {#size--}
```
public final int size()
```


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

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


Converts the WeekDayCollection object to a list of [WeekDay](../../com.aspose.tasks/weekday) objects.

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