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

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

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

| Method | Description |
| --- | --- |
| [add(Baseline item)](#add-com.aspose.tasks.Baseline-) | This is the stub implementation of ICollection's Add method, that only throws NotSupportedException |
| [get(int index)](#get-int-) | Returns the baseline at the specified position. |
| [getBaselineByType(int baselineType)](#getBaselineByType-int-) | Gets the resource baseline with the specified type. |
| [getByType(int baselineType)](#getByType-int-) | Gets the resource baseline with the specified type. |
| [getParentResource()](#getParentResource--) | Gets the parent [Resource](../../com.aspose.tasks/resource) 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 baseline from this collection. |
| [size()](#size--) | Gets the number of objects contained in this BaselineCollection object. |
| [toList()](#toList--) | Converts the BaselineCollection object to a list of [Baseline](../../com.aspose.tasks/baseline) objects. |
### add(Baseline item) {#add-com.aspose.tasks.Baseline-}
```
public final boolean add(Baseline item)
```


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | [Baseline](../../com.aspose.tasks/baseline) | The item to remove. |

**Returns:**
boolean - \{@inheritDoc\}
### get(int index) {#get-int-}
```
public Baseline get(int index)
```


Returns the baseline at the specified position.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | index of the element to return. |

**Returns:**
[Baseline](../../com.aspose.tasks/baseline) - the baseline at the specified position.
### getBaselineByType(int baselineType) {#getBaselineByType-int-}
```
public final Baseline getBaselineByType(int baselineType)
```


Gets the resource baseline with the specified type.

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

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


Gets the resource baseline with the specified type.

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

**Returns:**
[Baseline](../../com.aspose.tasks/baseline) - the resource baseline with the specified type, or `null` if no matching baseline is found.
### getParentResource() {#getParentResource--}
```
public final Resource getParentResource()
```


Gets the parent [Resource](../../com.aspose.tasks/resource) for this collection.

**Returns:**
[Resource](../../com.aspose.tasks/resource) - the parent [Resource](../../com.aspose.tasks/resource) for this collection.
### remove(int index) {#remove-int-}
```
public Baseline remove(int index)
```


Removes the element at the specified position in this list.

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

**Returns:**
[Baseline](../../com.aspose.tasks/baseline) - \{@inheritDoc\}
### 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 | [Baseline](../../com.aspose.tasks/baseline) instance to remove. |

**Returns:**
boolean - true if [Baseline](../../com.aspose.tasks/baseline) instance has been removed successfully; otherwise, false
### size() {#size--}
```
public final int size()
```


Gets the number of objects contained in this BaselineCollection object.

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


Converts the BaselineCollection object to a list of [Baseline](../../com.aspose.tasks/baseline) objects.

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