PostalAddressList

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()

Methods

Method Description
getWorkAddress() Default work address
setWorkAddress(PostalAddress value) Default work address
getOtherAddress() Default other address
setOtherAddress(PostalAddress value) Default other address
getHomeAddress() Default home address
setHomeAddress(PostalAddress value) Default home address
add(PostalAddress value) Adds an item to the list.
insert(int index, PostalAddress value) Inserts an item to the list at the specified index.
get_Item(int index) Gets or sets the element at the specified index.
set_Item(int index, PostalAddress value) Gets or sets the element at the specified index.
contains(PostalAddress value) Determines whether the list contains a specific value.
clear() Removes all items from the list.
indexOf(PostalAddress value) Determines the index of a specific item in the list.
remove(PostalAddress value) Removes the first occurrence of a specific object from the list.
removeAt(int index) Removes the list item at the specified index.
isReadOnly() Gets a value indicating whether the list is read-only.
copyTo(PostalAddress[] array, int index) Copies the elements to an array, starting at a particular array index.
size() Gets the number of elements contained in the ICollection.
iterator() Returns an enumerator that iterates through a collection.
addItem(PostalAddress value)
removeItem(PostalAddress value)
insertItem(int index, PostalAddress value)
indexOfItem(PostalAddress value)
containsItem(PostalAddress value)
copyToTArray(PostalAddress[] array, int index)

PostalAddressList()

public PostalAddressList()

getWorkAddress()

public final PostalAddress getWorkAddress()

Default work address

Returns: PostalAddress

setWorkAddress(PostalAddress value)

public final void setWorkAddress(PostalAddress value)

Default work address

Parameters:

Parameter Type Description
value PostalAddress

getOtherAddress()

public final PostalAddress getOtherAddress()

Default other address

Returns: PostalAddress

setOtherAddress(PostalAddress value)

public final void setOtherAddress(PostalAddress value)

Default other address

Parameters:

Parameter Type Description
value PostalAddress

getHomeAddress()

public final PostalAddress getHomeAddress()

Default home address

Returns: PostalAddress

setHomeAddress(PostalAddress value)

public final void setHomeAddress(PostalAddress value)

Default home address

Parameters:

Parameter Type Description
value PostalAddress

add(PostalAddress value)

public final void add(PostalAddress value)

Adds an item to the list.

Parameters:

Parameter Type Description
value PostalAddress The object to add to the list.

insert(int index, PostalAddress value)

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 The Object to insert into the list.

get_Item(int index)

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 - The element at the specified index.

set_Item(int index, PostalAddress value)

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

contains(PostalAddress value)

public final boolean contains(PostalAddress value)

Determines whether the list contains a specific value.

Parameters:

Parameter Type Description
value PostalAddress The object to locate in the list.

Returns: boolean - true if the object is found in the list; otherwise, false.

clear()

public final void clear()

Removes all items from the list.

indexOf(PostalAddress value)

public final int indexOf(PostalAddress value)

Determines the index of a specific item in the list.

Parameters:

Parameter Type Description
value PostalAddress The Object to locate in the list.

Returns: int - The index of ``` value ``` if found in the list; otherwise, -1.

remove(PostalAddress value)

public final boolean remove(PostalAddress value)

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

Parameters:

Parameter Type Description
value PostalAddress The Object to remove from the list.

Returns: boolean

removeAt(int index)

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.

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.

copyTo(PostalAddress[] array, int index)

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 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.

size()

public final int size()

Gets the number of elements contained in the ICollection.

Returns: int - The number of elements contained in the ICollection.

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.

addItem(PostalAddress value)

public void addItem(PostalAddress value)

Parameters:

Parameter Type Description
value PostalAddress

removeItem(PostalAddress value)

public boolean removeItem(PostalAddress value)

Parameters:

Parameter Type Description
value PostalAddress

Returns: boolean

insertItem(int index, PostalAddress value)

public void insertItem(int index, PostalAddress value)

Parameters:

Parameter Type Description
index int
value PostalAddress

indexOfItem(PostalAddress value)

public int indexOfItem(PostalAddress value)

Parameters:

Parameter Type Description
value PostalAddress

Returns: int

containsItem(PostalAddress value)

public boolean containsItem(PostalAddress value)

Parameters:

Parameter Type Description
value PostalAddress

Returns: boolean

copyToTArray(PostalAddress[] array, int index)

public void copyToTArray(PostalAddress[] array, int index)

Parameters:

Parameter Type Description
array com.aspose.email.PostalAddress[]
index int