
**Inheritance:**
java.lang.Object

**All Implemented Interfaces:**
java.lang.Iterable
```
public class OdsoFieldMapDataCollection implements Iterable
```

A typed collection of the [OdsoFieldMapData](../../com.aspose.words/odsofieldmapdata/) objects.

To learn more, visit the [ Mail Merge and Reporting ][Mail Merge and Reporting] documentation article.


[Mail Merge and Reporting]: https://docs.aspose.com/words/java/mail-merge-and-reporting/
## Methods

| Method | Description |
| --- | --- |
| [add(OdsoFieldMapData value)](#add-com.aspose.words.OdsoFieldMapData) | Adds an object to the end of this collection. |
| [clear()](#clear) | Removes all elements from this collection. |
| [get(int index)](#get-int) | Gets an item in this collection. |
| [getCount()](#getCount) | Gets the number of elements contained in the collection. |
| [iterator()](#iterator) | Returns an iterator object that can be used to iterate over all items in the collection. |
| [removeAt(int index)](#removeAt-int) | Removes the element at the specified index. |
| [set(int index, OdsoFieldMapData value)](#set-int-com.aspose.words.OdsoFieldMapData) | Sets an item in this collection. |
### add(OdsoFieldMapData value) {#add-com.aspose.words.OdsoFieldMapData}
```
public int add(OdsoFieldMapData value)
```


Adds an object to the end of this collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [OdsoFieldMapData](../../com.aspose.words/odsofieldmapdata/) | The object to add. Cannot be  null . |

**Returns:**
int
### clear() {#clear}
```
public void clear()
```


Removes all elements from this collection.

### get(int index) {#get-int}
```
public OdsoFieldMapData get(int index)
```


Gets an item in this collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int |  |

**Returns:**
[OdsoFieldMapData](../../com.aspose.words/odsofieldmapdata/) - An item in this collection.
### getCount() {#getCount}
```
public int getCount()
```


Gets the number of elements contained in the collection.

**Returns:**
int - The number of elements contained in the collection.
### iterator() {#iterator}
```
public Iterator iterator()
```


Returns an iterator object that can be used to iterate over all items in the collection.

**Returns:**
java.util.Iterator
### removeAt(int index) {#removeAt-int}
```
public void removeAt(int index)
```


Removes the element at the specified index.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | The zero-based index of the element. |

### set(int index, OdsoFieldMapData value) {#set-int-com.aspose.words.OdsoFieldMapData}
```
public void set(int index, OdsoFieldMapData value)
```


Sets an item in this collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int |  |
| value | [OdsoFieldMapData](../../com.aspose.words/odsofieldmapdata/) | An item in this collection. |

