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

Contains a collection of [GroupCriterion](../../com.aspose.tasks/groupcriterion) objects. Implements ICollection&lt;GroupCriterion&gt; interface.
## Methods

| Method | Description |
| --- | --- |
| [add(GroupCriterion item)](#add-com.aspose.tasks.GroupCriterion-) | Adds the specified item to this collection. |
| [add(int index, GroupCriterion element)](#add-int-com.aspose.tasks.GroupCriterion-) | Inserts the specified element at the specified position in this list. |
| [get(int index)](#get-int-) | (@inheritDoc\} |
| [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 a single instance of the specified element from this collection, if it is present. |
| [size()](#size--) | Gets the number of elements contained in this collection. |
| [toList()](#toList--) | Converts a GroupCriterion collection to a list of [GroupCriterion](../../com.aspose.tasks/groupcriterion) objects. |
### add(GroupCriterion item) {#add-com.aspose.tasks.GroupCriterion-}
```
public final boolean add(GroupCriterion item)
```


Adds the specified item to this collection.

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

**Returns:**
boolean - true if the specified item was added successfully; otherwise, false.
### add(int index, GroupCriterion element) {#add-int-com.aspose.tasks.GroupCriterion-}
```
public void add(int index, GroupCriterion element)
```


Inserts the specified element at the specified position in this list.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | \{@inheritDoc\} |
| element | [GroupCriterion](../../com.aspose.tasks/groupcriterion) | \{@inheritDoc\} |

### get(int index) {#get-int-}
```
public GroupCriterion get(int index)
```


(@inheritDoc\}

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

**Returns:**
[GroupCriterion](../../com.aspose.tasks/groupcriterion) - \{@inheritDoc\}
### remove(int index) {#remove-int-}
```
public final GroupCriterion 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:**
[GroupCriterion](../../com.aspose.tasks/groupcriterion) - the element that was removed from the collection.
### remove(Object item) {#remove-java.lang.Object-}
```
public final boolean remove(Object item)
```


Removes a single instance of the specified element from this collection, if it is present.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | java.lang.Object | element to be removed from this collection, if present. |

**Returns:**
boolean - true if an element was removed as a result of this call.
### 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<GroupCriterion> toList()
```


Converts a GroupCriterion collection to a list of [GroupCriterion](../../com.aspose.tasks/groupcriterion) objects.

**Returns:**
java.util.List&lt;com.aspose.tasks.GroupCriterion&gt; - Generic list of [GroupCriterion](../../com.aspose.tasks/groupcriterion) objects.
