
**Inheritance:**
java.lang.Object, com.aspose.ms.System.Collections.ObjectModel.Collection
```
public class MailAddressCollection extends System.Collections.ObjectModel.Collection<MailAddress>
```

Represents a collection of [MailAddress](../../com.aspose.email/mailaddress) objects.
## Constructors

| Constructor | Description |
| --- | --- |
| [MailAddressCollection()](#MailAddressCollection--) |  |
## Methods

| Method | Description |
| --- | --- |
| [add(String addresses)](#add-java.lang.String-) | Add a list of e-mail addresses to the collection. |
| [addItem(T arg0)](#addItem-T-) |  |
| [addMailAddress(MailAddress address)](#addMailAddress-com.aspose.email.MailAddress-) | Add a [MailAddress](../../com.aspose.email/mailaddress) to the collection. |
| [addRange(MailAddressCollection addresses)](#addRange-com.aspose.email.MailAddressCollection-) | Adds addresses to collection |
| [addRange(Iterable<MailAddress> addresses)](#addRange-java.lang.Iterable-com.aspose.email.MailAddress--) | Adds addresses to collection |
| [clear()](#clear--) | Removes all elements from the Collection. |
| [containsItem(T arg0)](#containsItem-T-) |  |
| [copy()](#copy--) | Copies this instance. |
| [copyToTArray(T[] arg0, int arg1)](#copyToTArray-T---int-) |  |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getClass()](#getClass--) |  |
| [getICollection()](#getICollection--) |  |
| [getIList()](#getIList--) |  |
| [getSyncRoot()](#getSyncRoot--) |  |
| [get_Item(int arg0)](#get-Item-int-) |  |
| [hashCode()](#hashCode--) |  |
| [indexOfItem(T arg0)](#indexOfItem-T-) |  |
| [insertItem(int arg0, T arg1)](#insertItem-int-T-) |  |
| [insertItem(int index, MailAddress item)](#insertItem-int-com.aspose.email.MailAddress-) | Inserts an element into the  System.Collections.ObjectModel.Collection1  at the specified index. |
| [isReadOnly()](#isReadOnly--) |  |
| [iterator()](#iterator--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [removeAt(int index)](#removeAt-int-) | Removes the element at the specified index of the Collection. |
| [removeItem(T arg0)](#removeItem-T-) |  |
| [set_Item(int arg0, T arg1)](#set-Item-int-T-) |  |
| [size()](#size--) |  |
| [toString()](#toString--) | Returns a String that represents this instance. |
| [to_MailAddressCollection(MailAddress address)](#to-MailAddressCollection-com.aspose.email.MailAddress-) | Performs an implicit conversion from [MailAddress](../../com.aspose.email/mailaddress) to [MailAddressCollection](../../com.aspose.email/mailaddresscollection). |
| [to_MailAddressCollection(String addresses)](#to-MailAddressCollection-java.lang.String-) | Performs an implicit conversion from String to [MailAddressCollection](../../com.aspose.email/mailaddresscollection). |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### MailAddressCollection() {#MailAddressCollection--}
```
public MailAddressCollection()
```


### add(String addresses) {#add-java.lang.String-}
```
public final void add(String addresses)
```


Add a list of e-mail addresses to the collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| addresses | java.lang.String | An address list. Addresses must be separated with a comma character. |

### addItem(T arg0) {#addItem-T-}
```
public void addItem(T arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T |  |

### addMailAddress(MailAddress address) {#addMailAddress-com.aspose.email.MailAddress-}
```
public final void addMailAddress(MailAddress address)
```


Add a [MailAddress](../../com.aspose.email/mailaddress) to the collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| address | [MailAddress](../../com.aspose.email/mailaddress) | The [MailAddress](../../com.aspose.email/mailaddress) |

### addRange(MailAddressCollection addresses) {#addRange-com.aspose.email.MailAddressCollection-}
```
public final void addRange(MailAddressCollection addresses)
```


Adds addresses to collection

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| addresses | [MailAddressCollection](../../com.aspose.email/mailaddresscollection) | Collection of mail addresses |

### addRange(Iterable<MailAddress> addresses) {#addRange-java.lang.Iterable-com.aspose.email.MailAddress--}
```
public final void addRange(Iterable<MailAddress> addresses)
```


Adds addresses to collection

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| addresses | java.lang.Iterable<com.aspose.email.MailAddress> | Enumeration of mail addresses |

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


Removes all elements from the Collection.

### containsItem(T arg0) {#containsItem-T-}
```
public boolean containsItem(T arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T |  |

**Returns:**
boolean
### copy() {#copy--}
```
public final MailAddressCollection copy()
```


Copies this instance.

**Returns:**
[MailAddressCollection](../../com.aspose.email/mailaddresscollection) - 
### copyToTArray(T[] arg0, int arg1) {#copyToTArray-T---int-}
```
public void copyToTArray(T[] arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T[] |  |
| arg1 | int |  |

### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




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

**Returns:**
boolean
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getICollection() {#getICollection--}
```
public System.Collections.ICollection getICollection()
```




**Returns:**
com.aspose.ms.System.Collections.ICollection
### getIList() {#getIList--}
```
public System.Collections.IList getIList()
```




**Returns:**
com.aspose.ms.System.Collections.IList
### getSyncRoot() {#getSyncRoot--}
```
public Object getSyncRoot()
```




**Returns:**
java.lang.Object
### get_Item(int arg0) {#get-Item-int-}
```
public T get_Item(int arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | int |  |

**Returns:**
T
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### indexOfItem(T arg0) {#indexOfItem-T-}
```
public int indexOfItem(T arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T |  |

**Returns:**
int
### insertItem(int arg0, T arg1) {#insertItem-int-T-}
```
public void insertItem(int arg0, T arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | int |  |
| arg1 | T |  |

### insertItem(int index, MailAddress item) {#insertItem-int-com.aspose.email.MailAddress-}
```
public void insertItem(int index, MailAddress item)
```


Inserts an element into the  System.Collections.ObjectModel.Collection1  at the specified index.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | The zero-based index at which  item  should be inserted. |
| item | [MailAddress](../../com.aspose.email/mailaddress) | The object to insert. The value can be null for reference types. |

### isReadOnly() {#isReadOnly--}
```
public boolean isReadOnly()
```




**Returns:**
boolean
### iterator() {#iterator--}
```
public System.Collections.Generic.IGenericEnumerator<T> iterator()
```




**Returns:**
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<T>
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### removeAt(int index) {#removeAt-int-}
```
public void removeAt(int index)
```


Removes the element at the specified index of the Collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | The zero-based index of the element to remove. |

### removeItem(T arg0) {#removeItem-T-}
```
public boolean removeItem(T arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T |  |

**Returns:**
boolean
### set_Item(int arg0, T arg1) {#set-Item-int-T-}
```
public void set_Item(int arg0, T arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | int |  |
| arg1 | T |  |

### size() {#size--}
```
public int size()
```




**Returns:**
int
### toString() {#toString--}
```
public String toString()
```


Returns a String that represents this instance.

**Returns:**
java.lang.String - A String that represents this instance.
### to_MailAddressCollection(MailAddress address) {#to-MailAddressCollection-com.aspose.email.MailAddress-}
```
public static MailAddressCollection to_MailAddressCollection(MailAddress address)
```


Performs an implicit conversion from [MailAddress](../../com.aspose.email/mailaddress) to [MailAddressCollection](../../com.aspose.email/mailaddresscollection).

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| address | [MailAddress](../../com.aspose.email/mailaddress) | The address. |

**Returns:**
[MailAddressCollection](../../com.aspose.email/mailaddresscollection) - The result of the conversion.
### to_MailAddressCollection(String addresses) {#to-MailAddressCollection-java.lang.String-}
```
public static MailAddressCollection to_MailAddressCollection(String addresses)
```


Performs an implicit conversion from String to [MailAddressCollection](../../com.aspose.email/mailaddresscollection).

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| addresses | java.lang.String | The address list. |

**Returns:**
[MailAddressCollection](../../com.aspose.email/mailaddresscollection) - The result of the conversion.
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final native void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

