
**Inheritance:**
java.lang.Object, java.util.AbstractCollection
```
public class FilterCollection extends AbstractCollection<Filter>
```

Contains a list of [Filter](../../com.aspose.tasks/filter) objects. Implements ICollection&lt;Filter&gt; interface.
## Methods

| Method | Description |
| --- | --- |
| [add(Filter item)](#add-com.aspose.tasks.Filter-) |  |
| [clear()](#clear--) | Removes all of the elements from this collection (optional operation). |
| [contains(Filter item)](#contains-com.aspose.tasks.Filter-) | Returns true if this collection contains the specified item. |
| [copyTo(Filter[] array, int arrayIndex)](#copyTo-com.aspose.tasks.Filter---int-) | Copies the elements from the specified array to this collection starting from the specified index. |
| [iterator()](#iterator--) | Returns an iterator over the elements containing in this collection. |
| [remove(Filter item)](#remove-com.aspose.tasks.Filter-) | Removes the specified item from this collection. |
| [size()](#size--) | Gets the number of elements contained in this collection. |
| [toList()](#toList--) | Converts a filter collection to a list of `Filter` objects. |
### add(Filter item) {#add-com.aspose.tasks.Filter-}
```
public boolean add(Filter item)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | [Filter](../../com.aspose.tasks/filter) |  |

**Returns:**
boolean
### clear() {#clear--}
```
public void clear()
```


Removes all of the elements from this collection (optional operation).

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


Returns true if this collection contains the specified item.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | [Filter](../../com.aspose.tasks/filter) | the specified item. |

**Returns:**
boolean - true if the collection contains the specified item.
### copyTo(Filter[] array, int arrayIndex) {#copyTo-com.aspose.tasks.Filter---int-}
```
public final void copyTo(Filter[] array, int arrayIndex)
```


Copies the elements from the specified array to this collection starting from the specified index.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| array | [Filter\[\]](../../com.aspose.tasks/filter) | the specified one-dimensional array to copy elements to |
| arrayIndex | int | the zero-based index of the specified array at which copying begins. |

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


Returns an iterator over the elements containing in this collection.

**Returns:**
java.util.Iterator&lt;com.aspose.tasks.Filter&gt; - collection iterator.
### remove(Filter item) {#remove-com.aspose.tasks.Filter-}
```
public final boolean remove(Filter item)
```


Removes the specified item from this collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | [Filter](../../com.aspose.tasks/filter) | the specified item. |

**Returns:**
boolean - true if the operation was successful.
### 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 List<Filter> toList()
```


Converts a filter collection to a list of `Filter` objects.

**Returns:**
java.util.List&lt;com.aspose.tasks.Filter&gt; - Generic list of `Filter` objects.
