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

**All Implemented Interfaces:**
com.aspose.tasks.IBaselineCollection
```
public class TaskBaselineCollection extends AbstractList<TaskBaseline> implements IBaselineCollection
```

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

| Method | Description |
| --- | --- |
| [add(TaskBaseline e)](#add-com.aspose.tasks.TaskBaseline-) | This is the stub implementation of ICollection's Add method, that only throws UnsupportedOperationException |
| [clear()](#clear--) | \{@inheritDoc\} |
| [get(int index)](#get-int-) | (@inheritDoc\} |
| [getBaselineByType(int baselineType)](#getBaselineByType-int-) | Gets the task baseline with the specified type. |
| [getByType(int baselineType)](#getByType-int-) | Gets the task baseline with the specified type. |
| [iterator()](#iterator--) | Returns an enumerator for 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 baseline from this collection. |
| [size()](#size--) | Gets the number of objects contained in this TaskBaselineCollection object. |
| [toList()](#toList--) | Converts the TaskBaselineCollection object to a list of [TaskBaseline](../../com.aspose.tasks/taskbaseline) objects. |
### add(TaskBaseline e) {#add-com.aspose.tasks.TaskBaseline-}
```
public final boolean add(TaskBaseline e)
```


This is the stub implementation of ICollection's Add method, that only throws UnsupportedOperationException

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

**Returns:**
boolean - \{@inheritDoc\}
### clear() {#clear--}
```
public final void clear()
```




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


(@inheritDoc\}

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

**Returns:**
[TaskBaseline](../../com.aspose.tasks/taskbaseline) - \{@inheritDoc\}
### getBaselineByType(int baselineType) {#getBaselineByType-int-}
```
public final TaskBaseline getBaselineByType(int baselineType)
```


Gets the task baseline with the specified type.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| baselineType | int | the specified baseline type. |

**Returns:**
[TaskBaseline](../../com.aspose.tasks/taskbaseline) - the task baseline with the specified type, or `null` if no matching baseline is found.
### getByType(int baselineType) {#getByType-int-}
```
public final TaskBaseline getByType(int baselineType)
```


Gets the task baseline with the specified type.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| baselineType | int | the specified baseline type. |

**Returns:**
[TaskBaseline](../../com.aspose.tasks/taskbaseline) - the task baseline with the specified type, or `null` if no matching baseline is found.
### iterator() {#iterator--}
```
public final Iterator<TaskBaseline> iterator()
```


Returns an enumerator for this collection.

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


Removes baseline from this collection.

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

**Returns:**
boolean - true if the item has been removed successfully; otherwise, false
### size() {#size--}
```
public final int size()
```


Gets the number of objects contained in this TaskBaselineCollection object.

**Returns:**
int - the number of objects contained in this TaskBaselineCollection object.
### toList() {#toList--}
```
public final List<TaskBaseline> toList()
```


Converts the TaskBaselineCollection object to a list of [TaskBaseline](../../com.aspose.tasks/taskbaseline) objects.

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