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

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

| Method | Description |
| --- | --- |
| [add(OutlineCodeDefinition item)](#add-com.aspose.tasks.OutlineCodeDefinition-) | Adds the specified item to this collection. |
| [get(int index)](#get-int-) | Returns the element at the specified position in this collection. |
| [iterator()](#iterator--) | Returns an iterator over elements from this collection. |
| [remove(int index)](#remove-int-) | Removes the element at the specified position in this collection and returns the element that was removed from the collection. |
| [size()](#size--) | Gets the number of elements contained in this collection. |
| [sort(Comparator&lt;? super OutlineCodeDefinition&gt; c)](#sort-java.util.Comparator---super-com.aspose.tasks.OutlineCodeDefinition--) | \{@inheritDoc\} |
| [toList()](#toList--) | Converts this OutlineCodeDefinitionCollection object to a list of [OutlineCodeDefinition](../../com.aspose.tasks/outlinecodedefinition) objects. |
### add(OutlineCodeDefinition item) {#add-com.aspose.tasks.OutlineCodeDefinition-}
```
public boolean add(OutlineCodeDefinition item)
```


Adds the specified item to this collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | [OutlineCodeDefinition](../../com.aspose.tasks/outlinecodedefinition) | the specified item to add to the collection. |

**Returns:**
boolean - true if the specified item was added successfully; otherwise, false.
### get(int index) {#get-int-}
```
public OutlineCodeDefinition get(int index)
```


Returns the element at the specified position in this collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | specified position to getInternal element at. |

**Returns:**
[OutlineCodeDefinition](../../com.aspose.tasks/outlinecodedefinition) - the element at the specified position in this collection.
### iterator() {#iterator--}
```
public Iterator<OutlineCodeDefinition> iterator()
```


Returns an iterator over elements from this collection.

**Returns:**
java.util.Iterator&lt;com.aspose.tasks.OutlineCodeDefinition&gt; - an iterator over elements from this collection.
### remove(int index) {#remove-int-}
```
public OutlineCodeDefinition remove(int index)
```


Removes the element at the specified position in this collection and returns the element that was removed from the collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | the specified position to remove the element at. |

**Returns:**
[OutlineCodeDefinition](../../com.aspose.tasks/outlinecodedefinition) - the element that was removed from the collection.
### size() {#size--}
```
public int size()
```


Gets the number of elements contained in this collection.

**Returns:**
int - the number of elements contained in this collection.
### sort(Comparator&lt;? super OutlineCodeDefinition&gt; c) {#sort-java.util.Comparator---super-com.aspose.tasks.OutlineCodeDefinition--}
```
public void sort(Comparator<? super OutlineCodeDefinition> c)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| c | java.util.Comparator&lt;? super com.aspose.tasks.OutlineCodeDefinition&gt; | \{@inheritDoc\} |

### toList() {#toList--}
```
public final List<OutlineCodeDefinition> toList()
```


Converts this OutlineCodeDefinitionCollection object to a list of [OutlineCodeDefinition](../../com.aspose.tasks/outlinecodedefinition) objects.

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