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

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

| Method | Description |
| --- | --- |
| [add(ExtendedAttributeDefinition item)](#add-com.aspose.tasks.ExtendedAttributeDefinition-) | Adds the specified item to this collection. |
| [clear()](#clear--) | Removes all items from this collection. |
| [contains(ExtendedAttributeDefinition item)](#contains-com.aspose.tasks.ExtendedAttributeDefinition-) | Returns true if the specified item is found in this collection; otherwise, false. |
| [copyTo(ExtendedAttributeDefinition[] array, int arrayIndex)](#copyTo-com.aspose.tasks.ExtendedAttributeDefinition---int-) | Copies the elements of this collection to the specified array, starting at the specified array index. |
| [get(int index)](#get-int-) | Returns the element at the specified position in this collection. |
| [getById(int id)](#getById-int-) | Returns an extended attribute definition by id |
| [getParentProject()](#getParentProject--) | Gets a parent project for the [ExtendedAttributeDefinitionCollection](../../com.aspose.tasks/extendedattributedefinitioncollection) instance. |
| [insert(int index, ExtendedAttributeDefinition item)](#insert-int-com.aspose.tasks.ExtendedAttributeDefinition-) | Inserts the specified item at the specified index. |
| [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. |
| [remove(Object item)](#remove-java.lang.Object-) | Removes the first occurrence of a specific object from this collection. |
| [set(int index, ExtendedAttributeDefinition value)](#set-int-com.aspose.tasks.ExtendedAttributeDefinition-) | Sets the element at the specified position in this collection. |
| [size()](#size--) | Gets the number of elements contained in this collection. |
| [toList()](#toList--) | Converts this ExtendedAttributeDefinitionCollection object to a list containing instances of the [ExtendedAttributeDefinition](../../com.aspose.tasks/extendedattributedefinition) class. |
### add(ExtendedAttributeDefinition item) {#add-com.aspose.tasks.ExtendedAttributeDefinition-}
```
public final boolean add(ExtendedAttributeDefinition item)
```


Adds the specified item to this collection.

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

**Returns:**
boolean - true if the specified item was added successfully; otherwise, false.
### clear() {#clear--}
```
public final void clear()
```


Removes all items from this collection.

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


Returns true if the specified item is found in this collection; otherwise, false.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | [ExtendedAttributeDefinition](../../com.aspose.tasks/extendedattributedefinition) | the specified item to find. |

**Returns:**
boolean - true if the specified item is found in this collection; otherwise, false.
### copyTo(ExtendedAttributeDefinition[] array, int arrayIndex) {#copyTo-com.aspose.tasks.ExtendedAttributeDefinition---int-}
```
public final void copyTo(ExtendedAttributeDefinition[] array, int arrayIndex)
```


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| array | [ExtendedAttributeDefinition\[\]](../../com.aspose.tasks/extendedattributedefinition) | 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 ExtendedAttributeDefinition 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:**
[ExtendedAttributeDefinition](../../com.aspose.tasks/extendedattributedefinition) - the element at the specified position in this collection.
### getById(int id) {#getById-int-}
```
public final ExtendedAttributeDefinition getById(int id)
```


Returns an extended attribute definition by id

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| id | int | specified id |

**Returns:**
[ExtendedAttributeDefinition](../../com.aspose.tasks/extendedattributedefinition) - ExtendedAttributeDefinition with specified id.
### getParentProject() {#getParentProject--}
```
public final Project getParentProject()
```


Gets a parent project for the [ExtendedAttributeDefinitionCollection](../../com.aspose.tasks/extendedattributedefinitioncollection) instance.

**Returns:**
[Project](../../com.aspose.tasks/project) - returns a parent project for this collection.
### insert(int index, ExtendedAttributeDefinition item) {#insert-int-com.aspose.tasks.ExtendedAttributeDefinition-}
```
public final void insert(int index, ExtendedAttributeDefinition item)
```


Inserts the specified item at the specified index.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | the specified zero-based index at which the item should be inserted. |
| item | [ExtendedAttributeDefinition](../../com.aspose.tasks/extendedattributedefinition) | the specified item to insert to this collection. |

### iterator() {#iterator--}
```
public Iterator<ExtendedAttributeDefinition> iterator()
```


Returns an iterator over elements from this collection.

**Returns:**
java.util.Iterator&lt;com.aspose.tasks.ExtendedAttributeDefinition&gt; - an iterator over elements from this collection.
### remove(int index) {#remove-int-}
```
public final ExtendedAttributeDefinition 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:**
[ExtendedAttributeDefinition](../../com.aspose.tasks/extendedattributedefinition) - the element that was removed from the collection.
### remove(Object item) {#remove-java.lang.Object-}
```
public final boolean remove(Object item)
```


Removes the first occurrence of a specific object from this collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | java.lang.Object | the specified object to remove. |

**Returns:**
boolean - true if the specified object was successfully removed from this collection; otherwise, false.
### set(int index, ExtendedAttributeDefinition value) {#set-int-com.aspose.tasks.ExtendedAttributeDefinition-}
```
public final ExtendedAttributeDefinition set(int index, ExtendedAttributeDefinition value)
```


Sets the element at the specified position in this collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | specified position to set element at. |
| value | [ExtendedAttributeDefinition](../../com.aspose.tasks/extendedattributedefinition) | the element to set at the specified position in this collection. |

**Returns:**
[ExtendedAttributeDefinition](../../com.aspose.tasks/extendedattributedefinition) - `ExtendedAttributeDefinition` value.
### size() {#size--}
```
public final int size()
```


Gets the number of elements contained in this collection.

**Returns:**
int - the number of elements contained in this collection.
### toList() {#toList--}
```
public final List<ExtendedAttributeDefinition> toList()
```


Converts this ExtendedAttributeDefinitionCollection object to a list containing instances of the [ExtendedAttributeDefinition](../../com.aspose.tasks/extendedattributedefinition) class.

**Returns:**
java.util.List&lt;com.aspose.tasks.ExtendedAttributeDefinition&gt; - List containing instances of the [ExtendedAttributeDefinition](../../com.aspose.tasks/extendedattributedefinition) class.
