
**Inheritance:**
java.lang.Object

**All Implemented Interfaces:**
com.aspose.ms.System.Collections.Generic.IGenericList
```
public class PostalAddressList implements System.Collections.Generic.IGenericList<PostalAddress>
```

List of postal addresses for a contact.
## Constructors

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

| Method | Description |
| --- | --- |
| [add(PostalAddress value)](#add-com.aspose.email.PostalAddress-) | Adds an item to the list. |
| [addItem(PostalAddress value)](#addItem-com.aspose.email.PostalAddress-) |  |
| [clear()](#clear--) | Removes all items from the list. |
| [contains(PostalAddress value)](#contains-com.aspose.email.PostalAddress-) | Determines whether the list contains a specific value. |
| [containsItem(PostalAddress value)](#containsItem-com.aspose.email.PostalAddress-) |  |
| [copyTo(PostalAddress[] array, int index)](#copyTo-com.aspose.email.PostalAddress---int-) | Copies the elements to an array, starting at a particular array index. |
| [copyToTArray(PostalAddress[] array, int index)](#copyToTArray-com.aspose.email.PostalAddress---int-) |  |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getClass()](#getClass--) |  |
| [getHomeAddress()](#getHomeAddress--) | Default home address |
| [getOtherAddress()](#getOtherAddress--) | Default other address |
| [getWorkAddress()](#getWorkAddress--) | Default work address |
| [get_Item(int index)](#get-Item-int-) | Gets or sets the element at the specified index. |
| [hashCode()](#hashCode--) |  |
| [indexOf(PostalAddress value)](#indexOf-com.aspose.email.PostalAddress-) | Determines the index of a specific item in the list. |
| [indexOfItem(PostalAddress value)](#indexOfItem-com.aspose.email.PostalAddress-) |  |
| [insert(int index, PostalAddress value)](#insert-int-com.aspose.email.PostalAddress-) | Inserts an item to the list at the specified index. |
| [insertItem(int index, PostalAddress value)](#insertItem-int-com.aspose.email.PostalAddress-) |  |
| [isReadOnly()](#isReadOnly--) | Gets a value indicating whether the list is read-only. |
| [iterator()](#iterator--) | Returns an enumerator that iterates through a collection. |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [remove(PostalAddress value)](#remove-com.aspose.email.PostalAddress-) | Removes the first occurrence of a specific object from the list. |
| [removeAt(int index)](#removeAt-int-) | Removes the list item at the specified index. |
| [removeItem(PostalAddress value)](#removeItem-com.aspose.email.PostalAddress-) |  |
| [setHomeAddress(PostalAddress value)](#setHomeAddress-com.aspose.email.PostalAddress-) | Default home address |
| [setOtherAddress(PostalAddress value)](#setOtherAddress-com.aspose.email.PostalAddress-) | Default other address |
| [setWorkAddress(PostalAddress value)](#setWorkAddress-com.aspose.email.PostalAddress-) | Default work address |
| [set_Item(int index, PostalAddress value)](#set-Item-int-com.aspose.email.PostalAddress-) | Gets or sets the element at the specified index. |
| [size()](#size--) | Gets the number of elements contained in the ICollection. |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### PostalAddressList() {#PostalAddressList--}
```
public PostalAddressList()
```


### add(PostalAddress value) {#add-com.aspose.email.PostalAddress-}
```
public final void add(PostalAddress value)
```


Adds an item to the list.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [PostalAddress](../../com.aspose.email/postaladdress) | The object to add to the list. |

### addItem(PostalAddress value) {#addItem-com.aspose.email.PostalAddress-}
```
public void addItem(PostalAddress value)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [PostalAddress](../../com.aspose.email/postaladdress) |  |

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


Removes all items from the list.

### contains(PostalAddress value) {#contains-com.aspose.email.PostalAddress-}
```
public final boolean contains(PostalAddress value)
```


Determines whether the list contains a specific value.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [PostalAddress](../../com.aspose.email/postaladdress) | The object to locate in the list. |

**Returns:**
boolean - true if the object is found in the list; otherwise, false.
### containsItem(PostalAddress value) {#containsItem-com.aspose.email.PostalAddress-}
```
public boolean containsItem(PostalAddress value)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [PostalAddress](../../com.aspose.email/postaladdress) |  |

**Returns:**
boolean
### copyTo(PostalAddress[] array, int index) {#copyTo-com.aspose.email.PostalAddress---int-}
```
public final void copyTo(PostalAddress[] array, int index)
```


Copies the elements to an array, starting at a particular array index.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| array | [PostalAddress\[\]](../../com.aspose.email/postaladdress) | The one-dimensional array that is the destination of the elements copied from collections. The array must have zero-based indexing. |
| index | int | The zero-based index in array at which copying begins. |

### copyToTArray(PostalAddress[] array, int index) {#copyToTArray-com.aspose.email.PostalAddress---int-}
```
public void copyToTArray(PostalAddress[] array, int index)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| array | [PostalAddress\[\]](../../com.aspose.email/postaladdress) |  |
| index | 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<?>
### getHomeAddress() {#getHomeAddress--}
```
public final PostalAddress getHomeAddress()
```


Default home address

**Returns:**
[PostalAddress](../../com.aspose.email/postaladdress)
### getOtherAddress() {#getOtherAddress--}
```
public final PostalAddress getOtherAddress()
```


Default other address

**Returns:**
[PostalAddress](../../com.aspose.email/postaladdress)
### getWorkAddress() {#getWorkAddress--}
```
public final PostalAddress getWorkAddress()
```


Default work address

**Returns:**
[PostalAddress](../../com.aspose.email/postaladdress)
### get_Item(int index) {#get-Item-int-}
```
public final PostalAddress get_Item(int index)
```


Gets or sets the element at the specified index.

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

**Returns:**
[PostalAddress](../../com.aspose.email/postaladdress) - The element at the specified index.
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### indexOf(PostalAddress value) {#indexOf-com.aspose.email.PostalAddress-}
```
public final int indexOf(PostalAddress value)
```


Determines the index of a specific item in the list.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [PostalAddress](../../com.aspose.email/postaladdress) | The Object to locate in the list. |

**Returns:**
int - The index of  value  if found in the list; otherwise, -1.
### indexOfItem(PostalAddress value) {#indexOfItem-com.aspose.email.PostalAddress-}
```
public int indexOfItem(PostalAddress value)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [PostalAddress](../../com.aspose.email/postaladdress) |  |

**Returns:**
int
### insert(int index, PostalAddress value) {#insert-int-com.aspose.email.PostalAddress-}
```
public final void insert(int index, PostalAddress value)
```


Inserts an item to the list at the specified index.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | The zero-based index at which  value  should be inserted. |
| value | [PostalAddress](../../com.aspose.email/postaladdress) | The Object to insert into the list. |

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




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int |  |
| value | [PostalAddress](../../com.aspose.email/postaladdress) |  |

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


Gets a value indicating whether the list is read-only.

**Returns:**
boolean - true if the list is read-only; otherwise, false.
### iterator() {#iterator--}
```
public final System.Collections.Generic.IGenericEnumerator<PostalAddress> iterator()
```


Returns an enumerator that iterates through a collection.

**Returns:**
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.email.PostalAddress> - An IEnumerator object that can be used to iterate through the collection.
### notify() {#notify--}
```
public final native void notify()
```




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




### remove(PostalAddress value) {#remove-com.aspose.email.PostalAddress-}
```
public final boolean remove(PostalAddress value)
```


Removes the first occurrence of a specific object from the list.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [PostalAddress](../../com.aspose.email/postaladdress) | The Object to remove from the list. |

**Returns:**
boolean
### removeAt(int index) {#removeAt-int-}
```
public final void removeAt(int index)
```


Removes the list item at the specified index.

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

### removeItem(PostalAddress value) {#removeItem-com.aspose.email.PostalAddress-}
```
public boolean removeItem(PostalAddress value)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [PostalAddress](../../com.aspose.email/postaladdress) |  |

**Returns:**
boolean
### setHomeAddress(PostalAddress value) {#setHomeAddress-com.aspose.email.PostalAddress-}
```
public final void setHomeAddress(PostalAddress value)
```


Default home address

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [PostalAddress](../../com.aspose.email/postaladdress) |  |

### setOtherAddress(PostalAddress value) {#setOtherAddress-com.aspose.email.PostalAddress-}
```
public final void setOtherAddress(PostalAddress value)
```


Default other address

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [PostalAddress](../../com.aspose.email/postaladdress) |  |

### setWorkAddress(PostalAddress value) {#setWorkAddress-com.aspose.email.PostalAddress-}
```
public final void setWorkAddress(PostalAddress value)
```


Default work address

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [PostalAddress](../../com.aspose.email/postaladdress) |  |

### set_Item(int index, PostalAddress value) {#set-Item-int-com.aspose.email.PostalAddress-}
```
public final void set_Item(int index, PostalAddress value)
```


Gets or sets the element at the specified index.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | The zero-based index of the element to get or set. |
| value | [PostalAddress](../../com.aspose.email/postaladdress) |  |

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


Gets the number of elements contained in the ICollection.

**Returns:**
int - The number of elements contained in the ICollection.
### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### 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 |  |

