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

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

| Method | Description |
| --- | --- |
| [add(Table item)](#add-com.aspose.tasks.Table-) | Adds the specified item to this collection. |
| [clear()](#clear--) | Removes all items from this collection. |
| [contains(Table item)](#contains-com.aspose.tasks.Table-) | Returns true if the specified item is found in this collection; otherwise, false. |
| [copyTo(Table[] array, int arrayIndex)](#copyTo-com.aspose.tasks.Table---int-) | Copies the elements of this collection to the specified array, starting at the specified array index. |
| [iterator()](#iterator--) | Returns an enumerator for this collection. |
| [remove(Table item)](#remove-com.aspose.tasks.Table-) | Removes the first occurrence of a specific object from this collection. |
| [size()](#size--) | Gets the number of elements contained in this collection. |
| [toList()](#toList--) | Converts a table collection to a list of [Table](../../com.aspose.tasks/table) objects. |
### add(Table item) {#add-com.aspose.tasks.Table-}
```
public final boolean add(Table item)
```


Adds the specified item to this collection.

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

**Returns:**
boolean - true if adding operation was successful and the item is added to the collection.
### clear() {#clear--}
```
public final void clear()
```


Removes all items from this collection.

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


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

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

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


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| array | [Table\[\]](../../com.aspose.tasks/table) | 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 final Iterator<Table> iterator()
```


Returns an enumerator for this collection.

**Returns:**
java.util.Iterator&lt;com.aspose.tasks.Table&gt; - an enumerator for this collection.
### remove(Table item) {#remove-com.aspose.tasks.Table-}
```
public final boolean remove(Table item)
```


Removes the first occurrence of a specific object from this collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | [Table](../../com.aspose.tasks/table) | the specified object to remove. |

**Returns:**
boolean - true if the specified object was successfully removed from this collection; otherwise, false.
### 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<Table> toList()
```


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

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