EmailAddressList

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericList

public class EmailAddressList implements System.Collections.Generic.IGenericList<EmailAddress>

List of email addresses for a contact

Constructors

Constructor Description
EmailAddressList()

Methods

Method Description
getWork() Default work email address.
setWork(EmailAddress value) Default work email address.
getHome() Default home email address.
setHome(EmailAddress value) Default home email address.
getEmail1() Default email1 address.
setEmail1(EmailAddress value) Default email1 address.
getEmail2() Default email2 address.
setEmail2(EmailAddress value) Default email2 address.
getEmail3() Default email3 address.
setEmail3(EmailAddress value) Default email3 address.
get_Item(EmailAddressCategory category) Default email address for specified category.
set_Item(EmailAddressCategory category, EmailAddress value) Default email address for specified category.
add(EmailAddress value) Adds an item to the list.
insert(int index, EmailAddress 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, EmailAddress value) Gets or sets the element at the specified index.
contains(EmailAddress value) Determines whether the list contains a specific value.
clear() Removes all items from the list.
indexOf(EmailAddress value) Determines the index of a specific item in the list.
remove(EmailAddress 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(EmailAddress[] 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.
getSyncRoot() Gets an object that can be used to synchronize access to the ICollection.
iterator() Returns an enumerator that iterates through a collection.
addItem(EmailAddress value)
removeItem(EmailAddress value)
insertItem(int index, EmailAddress value)
indexOfItem(EmailAddress value)
containsItem(EmailAddress value)
copyToTArray(EmailAddress[] array, int index)

EmailAddressList()

public EmailAddressList()

getWork()

public final EmailAddress getWork()

Default work email address.

Returns: EmailAddress

setWork(EmailAddress value)

public final void setWork(EmailAddress value)

Default work email address.

Parameters:

Parameter Type Description
value EmailAddress

getHome()

public final EmailAddress getHome()

Default home email address.

Returns: EmailAddress

setHome(EmailAddress value)

public final void setHome(EmailAddress value)

Default home email address.

Parameters:

Parameter Type Description
value EmailAddress

getEmail1()

public final EmailAddress getEmail1()

Default email1 address.

Returns: EmailAddress

setEmail1(EmailAddress value)

public final void setEmail1(EmailAddress value)

Default email1 address.

Parameters:

Parameter Type Description
value EmailAddress

getEmail2()

public final EmailAddress getEmail2()

Default email2 address.

Returns: EmailAddress

setEmail2(EmailAddress value)

public final void setEmail2(EmailAddress value)

Default email2 address.

Parameters:

Parameter Type Description
value EmailAddress

getEmail3()

public final EmailAddress getEmail3()

Default email3 address.

Returns: EmailAddress

setEmail3(EmailAddress value)

public final void setEmail3(EmailAddress value)

Default email3 address.

Parameters:

Parameter Type Description
value EmailAddress

get_Item(EmailAddressCategory category)

public final EmailAddress get_Item(EmailAddressCategory category)

Default email address for specified category.

Parameters:

Parameter Type Description
category EmailAddressCategory Category for email address

Returns: EmailAddress - default email address for specified category.

set_Item(EmailAddressCategory category, EmailAddress value)

public final void set_Item(EmailAddressCategory category, EmailAddress value)

Default email address for specified category.

Parameters:

Parameter Type Description
category EmailAddressCategory Category for email address
value EmailAddress

add(EmailAddress value)

public final void add(EmailAddress value)

Adds an item to the list.

Parameters:

Parameter Type Description
value EmailAddress The Object to add to the list.

insert(int index, EmailAddress value)

public final void insert(int index, EmailAddress 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 EmailAddress The Object to insert into the list.

get_Item(int index)

public final EmailAddress 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: EmailAddress - The element at the specified index.

set_Item(int index, EmailAddress value)

public final void set_Item(int index, EmailAddress 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 EmailAddress

contains(EmailAddress value)

public final boolean contains(EmailAddress value)

Determines whether the list contains a specific value.

Parameters:

Parameter Type Description
value EmailAddress 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(EmailAddress value)

public final int indexOf(EmailAddress value)

Determines the index of a specific item in the list.

Parameters:

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

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

remove(EmailAddress value)

public final boolean remove(EmailAddress value)

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

Parameters:

Parameter Type Description
value EmailAddress 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(EmailAddress[] array, int index)

public final void copyTo(EmailAddress[] array, int index)

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

Parameters:

Parameter Type Description
array com.aspose.email.EmailAddress[] 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.

getSyncRoot()

public final Object getSyncRoot()

Gets an object that can be used to synchronize access to the ICollection.

Returns: java.lang.Object - An object that can be used to synchronize access to the ICollection.

iterator()

public final System.Collections.Generic.IGenericEnumerator<EmailAddress> iterator()

Returns an enumerator that iterates through a collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.email.EmailAddress> - An IEnumerator object that can be used to iterate through the collection.

addItem(EmailAddress value)

public void addItem(EmailAddress value)

Parameters:

Parameter Type Description
value EmailAddress

removeItem(EmailAddress value)

public boolean removeItem(EmailAddress value)

Parameters:

Parameter Type Description
value EmailAddress

Returns: boolean

insertItem(int index, EmailAddress value)

public void insertItem(int index, EmailAddress value)

Parameters:

Parameter Type Description
index int
value EmailAddress

indexOfItem(EmailAddress value)

public int indexOfItem(EmailAddress value)

Parameters:

Parameter Type Description
value EmailAddress

Returns: int

containsItem(EmailAddress value)

public boolean containsItem(EmailAddress value)

Parameters:

Parameter Type Description
value EmailAddress

Returns: boolean

copyToTArray(EmailAddress[] array, int index)

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

Parameters:

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