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

Represents a collection of WBSCodeMask objects.
## Methods

| Method | Description |
| --- | --- |
| [add(WBSCodeMask item)](#add-com.aspose.tasks.WBSCodeMask-) | Adds the specified item to this collection. |
| [add(int index, WBSCodeMask element)](#add-int-com.aspose.tasks.WBSCodeMask-) | Inserts the specified element at the specified position in this list. |
| [clear()](#clear--) | Removes all items from this collection. |
| [contains(Object item)](#contains-java.lang.Object-) | Returns true if the specified item is found in this collection; otherwise, false. |
| [get(int index)](#get-int-) | \{@inheritDoc\} |
| [indexOf(Object item)](#indexOf-java.lang.Object-) |  |
| [isReadOnly()](#isReadOnly--) | Gets a value indicating whether this collection is read-only; otherwise, false. |
| [iterator()](#iterator--) | Returns an enumerator 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 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 WBSCodeMaskCollection to a list of [WBSCodeMask](../../com.aspose.tasks/wbscodemask) objects. |
### add(WBSCodeMask item) {#add-com.aspose.tasks.WBSCodeMask-}
```
public boolean add(WBSCodeMask item)
```


Adds the specified item to this collection.

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

**Returns:**
boolean - Returns true is the item was added successfully.
### add(int index, WBSCodeMask element) {#add-int-com.aspose.tasks.WBSCodeMask-}
```
public void add(int index, WBSCodeMask element)
```


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

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

### clear() {#clear--}
```
public final void clear()
```


Removes all items from this collection.

### contains(Object item) {#contains-java.lang.Object-}
```
public final boolean contains(Object item)
```


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | java.lang.Object | the specified item to find. |

**Returns:**
boolean - true if the specified item is found in this collection; otherwise, false.
### get(int index) {#get-int-}
```
public WBSCodeMask get(int index)
```




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

**Returns:**
[WBSCodeMask](../../com.aspose.tasks/wbscodemask) - \{@inheritDoc\}
### indexOf(Object item) {#indexOf-java.lang.Object-}
```
public final int indexOf(Object item)
```




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

**Returns:**
int
### isReadOnly() {#isReadOnly--}
```
public final boolean isReadOnly()
```


Gets a value indicating whether this collection is read-only; otherwise, false.

**Returns:**
boolean - a value indicating whether this collection is read-only; otherwise, false.
### iterator() {#iterator--}
```
public final Iterator<WBSCodeMask> iterator()
```


Returns an enumerator for this collection.

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


Removes the element at the specified position in this list.

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

**Returns:**
[WBSCodeMask](../../com.aspose.tasks/wbscodemask) - \{@inheritDoc\}
### remove(Object item) {#remove-java.lang.Object-}
```
public final boolean remove(Object item)
```


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | java.lang.Object | 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<WBSCodeMask> toList()
```


Converts a WBSCodeMaskCollection to a list of [WBSCodeMask](../../com.aspose.tasks/wbscodemask) objects.

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