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

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

| Method | Description |
| --- | --- |
| [add(ExtendedAttribute item)](#add-com.aspose.tasks.ExtendedAttribute-) | Adds the specified item to this collection. |
| [clear()](#clear--) | Removes all items from this collection. |
| [contains(ExtendedAttribute item)](#contains-com.aspose.tasks.ExtendedAttribute-) | Returns true if the specified item is found in this collection; otherwise, false. |
| [copyTo(ExtendedAttribute[] array, int arrayIndex)](#copyTo-com.aspose.tasks.ExtendedAttribute---int-) | Copies the elements of this collection to the specified array, starting at the specified array index. |
| [get(int index)](#get-int-) | Gets the element at the specified index. |
| [indexOf(ExtendedAttribute item)](#indexOf-com.aspose.tasks.ExtendedAttribute-) | Determines the index of the specified item in this collection. |
| [insert(int index, ExtendedAttribute item)](#insert-int-com.aspose.tasks.ExtendedAttribute-) | Inserts the specified item at the specified index. |
| [iterator()](#iterator--) | Returns an iterator over elements from this collection. |
| [remove(int index)](#remove-int-) | Removes an item at the specified index. |
| [remove(Object item)](#remove-java.lang.Object-) | Removes the element from the collection. |
| [set(int index, ExtendedAttribute value)](#set-int-com.aspose.tasks.ExtendedAttribute-) | Replaces the element at the specified position in this list with the specified element. |
| [size()](#size--) | Gets the number of elements contained in this collection. |
### add(ExtendedAttribute item) {#add-com.aspose.tasks.ExtendedAttribute-}
```
public final boolean add(ExtendedAttribute item)
```


Adds the specified item to this collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | [ExtendedAttribute](../../com.aspose.tasks/extendedattribute) | 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(ExtendedAttribute item) {#contains-com.aspose.tasks.ExtendedAttribute-}
```
public final boolean contains(ExtendedAttribute item)
```


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

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

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


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| array | [ExtendedAttribute\[\]](../../com.aspose.tasks/extendedattribute) | 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 final ExtendedAttribute get(int index)
```


Gets the element at the specified index.

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

**Returns:**
[ExtendedAttribute](../../com.aspose.tasks/extendedattribute) - the element at the specified index.
### indexOf(ExtendedAttribute item) {#indexOf-com.aspose.tasks.ExtendedAttribute-}
```
public final int indexOf(ExtendedAttribute item)
```


Determines the index of the specified item in this collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | [ExtendedAttribute](../../com.aspose.tasks/extendedattribute) | the specified item to locate in this collection. |

**Returns:**
int - the index of the specified item if found; otherwise, -1.
### insert(int index, ExtendedAttribute item) {#insert-int-com.aspose.tasks.ExtendedAttribute-}
```
public final void insert(int index, ExtendedAttribute 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 | [ExtendedAttribute](../../com.aspose.tasks/extendedattribute) | the specified item to insert to this collection. |

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


Returns an iterator over elements from this collection.

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


Removes an item at the specified index.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | the specified zero-based index to remove an item at. |

**Returns:**
[ExtendedAttribute](../../com.aspose.tasks/extendedattribute) - the element that was removed from the collection.
### remove(Object item) {#remove-java.lang.Object-}
```
public final boolean remove(Object item)
```


Removes the element from the collection.

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

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


Replaces the element at the specified position in this list with the specified element.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | the specified position to replace element at. |
| value | [ExtendedAttribute](../../com.aspose.tasks/extendedattribute) | the specified element to replace the element at the specified position. |

**Returns:**
[ExtendedAttribute](../../com.aspose.tasks/extendedattribute) - the element replaced by the specified element at the specified position.
### 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.
