
**Inheritance:**
java.lang.Object, java.util.AbstractCollection, java.util.AbstractList, com.aspose.tasks.AbstractList
```
public class CalendarExceptionCollection extends AbstractList<CalendarException>
```

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

| Method | Description |
| --- | --- |
| [add(CalendarException item)](#add-com.aspose.tasks.CalendarException-) | Adds CalendarException instance to this collection object. |
| [add(int index, CalendarException element)](#add-int-com.aspose.tasks.CalendarException-) | Inserts the specified element at the specified position in this list. |
| [addRange(Iterable&lt;CalendarException&gt; exceptionList)](#addRange-java.lang.Iterable-com.aspose.tasks.CalendarException--) | Adds range of exceptions to the internal list. |
| [clear()](#clear--) | Removes all items from the [CalendarExceptionCollection](../../com.aspose.tasks/calendarexceptioncollection). |
| [contains(Object item)](#contains-java.lang.Object-) |  |
| [copyTo(CalendarException[] array, int arrayIndex)](#copyTo-com.aspose.tasks.CalendarException---int-) | Copies the elements of this collection to the specified array, starting at the specified array index. |
| [get(int index)](#get-int-) | (@inheritDoc\} |
| [getParentCalendar()](#getParentCalendar--) | Gets the parent calendar for this object. |
| [indexOf(Object item)](#indexOf-java.lang.Object-) |  |
| [iterator()](#iterator--) | Returns an enumerator for this collection. |
| [remove(int index)](#remove-int-) | Removes the element at the specified position in this list. |
| [remove(Object item)](#remove-java.lang.Object-) | Removes [CalendarException](../../com.aspose.tasks/calendarexception) instance from this collection. |
| [set(int index, CalendarException element)](#set-int-com.aspose.tasks.CalendarException-) | (@inheritDoc\} |
| [size()](#size--) | Gets the number of objects contained in this [CalendarExceptionCollection](../../com.aspose.tasks/calendarexceptioncollection) object. |
| [toList()](#toList--) | Converts the CalendarExceptionCollection object to a list of [CalendarException](../../com.aspose.tasks/calendarexception) objects. |
### add(CalendarException item) {#add-com.aspose.tasks.CalendarException-}
```
public final boolean add(CalendarException item)
```


Adds CalendarException instance to this collection object.

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

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


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

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

### addRange(Iterable&lt;CalendarException&gt; exceptionList) {#addRange-java.lang.Iterable-com.aspose.tasks.CalendarException--}
```
public final void addRange(Iterable<CalendarException> exceptionList)
```


Adds range of exceptions to the internal list.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| exceptionList | java.lang.Iterable&lt;com.aspose.tasks.CalendarException&gt; | Range of exceptions to add. |

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


Removes all items from the [CalendarExceptionCollection](../../com.aspose.tasks/calendarexceptioncollection).

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




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

**Returns:**
boolean
### copyTo(CalendarException[] array, int arrayIndex) {#copyTo-com.aspose.tasks.CalendarException---int-}
```
public final void copyTo(CalendarException[] array, int arrayIndex)
```


Copies the elements of this collection to the specified array, starting at the specified array index.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| array | [CalendarException\[\]](../../com.aspose.tasks/calendarexception) | the specified one-dimensional array to copy elements to |
| arrayIndex | int | the zero-based index of the specified array at which copying begins. |

### get(int index) {#get-int-}
```
public CalendarException get(int index)
```


(@inheritDoc\}

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

**Returns:**
[CalendarException](../../com.aspose.tasks/calendarexception) - \{@inheritDoc\}
### getParentCalendar() {#getParentCalendar--}
```
public final Calendar getParentCalendar()
```


Gets the parent calendar for this object.

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




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

**Returns:**
int
### iterator() {#iterator--}
```
public final Iterator<CalendarException> iterator()
```


Returns an enumerator for this collection.

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


Removes the element at the specified position in this list.

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

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


Removes [CalendarException](../../com.aspose.tasks/calendarexception) instance from this collection.

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

**Returns:**
boolean - true if the specified exception was removed successfully.
### set(int index, CalendarException element) {#set-int-com.aspose.tasks.CalendarException-}
```
public CalendarException set(int index, CalendarException element)
```


(@inheritDoc\}

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

**Returns:**
[CalendarException](../../com.aspose.tasks/calendarexception) - \{@inheritDoc\}
### size() {#size--}
```
public final int size()
```


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

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


Converts the CalendarExceptionCollection object to a list of [CalendarException](../../com.aspose.tasks/calendarexception) objects.

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