public class EmailAddressList extends Object implements com.aspose.ms.System.Collections.Generic.IGenericList<EmailAddress>
List of email addresses for a contact
Constructor and Description |
---|
EmailAddressList() |
Modifier and Type | Method and Description |
---|---|
void |
add(EmailAddress value)
Adds an item to the list.
|
void |
addItem(EmailAddress value) |
void |
clear()
Removes all items from the list.
|
boolean |
contains(EmailAddress value)
Determines whether the list contains a specific value.
|
boolean |
containsItem(EmailAddress value) |
void |
copyTo(EmailAddress[] array,
int index)
Copies the elements to an array, starting at a particular array index.
|
void |
copyToTArray(EmailAddress[] array,
int index) |
EmailAddress |
get_Item(EmailAddressCategory category)
Default email address for specified category.
|
EmailAddress |
get_Item(int index)
Gets or sets the element at the specified index.
|
EmailAddress |
getEmail1()
Default email1 address.
|
EmailAddress |
getEmail2()
Default email2 address.
|
EmailAddress |
getEmail3()
Default email3 address.
|
EmailAddress |
getHome()
Default home email address.
|
Object |
getSyncRoot()
Gets an object that can be used to synchronize access to the
ICollection . |
EmailAddress |
getWork()
Default work email address.
|
int |
indexOf(EmailAddress value)
Determines the index of a specific item in the list.
|
int |
indexOfItem(EmailAddress value) |
void |
insert(int index,
EmailAddress value)
Inserts an item to the list at the specified index.
|
void |
insertItem(int index,
EmailAddress value) |
boolean |
isReadOnly()
Gets a value indicating whether the list is read-only.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<EmailAddress> |
iterator()
Returns an enumerator that iterates through a collection.
|
boolean |
remove(EmailAddress value)
Removes the first occurrence of a specific object from the list.
|
void |
removeAt(int index)
Removes the list item at the specified index.
|
boolean |
removeItem(EmailAddress value) |
void |
set_Item(EmailAddressCategory category,
EmailAddress value)
Default email address for specified category.
|
void |
set_Item(int index,
EmailAddress value)
Gets or sets the element at the specified index.
|
void |
setEmail1(EmailAddress value)
Default email1 address.
|
void |
setEmail2(EmailAddress value)
Default email2 address.
|
void |
setEmail3(EmailAddress value)
Default email3 address.
|
void |
setHome(EmailAddress value)
Default home email address.
|
void |
setWork(EmailAddress value)
Default work email address.
|
int |
size()
Gets the number of elements contained in the
ICollection . |
public final EmailAddress getWork()
Default work email address.
public final void setWork(EmailAddress value)
Default work email address.
public final EmailAddress getHome()
Default home email address.
public final void setHome(EmailAddress value)
Default home email address.
public final EmailAddress getEmail1()
Default email1 address.
public final void setEmail1(EmailAddress value)
Default email1 address.
public final EmailAddress getEmail2()
Default email2 address.
public final void setEmail2(EmailAddress value)
Default email2 address.
public final EmailAddress getEmail3()
Default email3 address.
public final void setEmail3(EmailAddress value)
Default email3 address.
public final EmailAddress get_Item(EmailAddressCategory category)
Default email address for specified category.
category
- Category for email addresspublic final void set_Item(EmailAddressCategory category, EmailAddress value)
Default email address for specified category.
category
- Category for email addresspublic final void add(EmailAddress value)
Adds an item to the list.
value
- The Object
to add to the list.public final void insert(int index, EmailAddress value)
Inserts an item to the list at the specified index.
index
- The zero-based index at which value
should be inserted.value
- The Object
to insert into the list.public final EmailAddress get_Item(int index)
Gets or sets the element at the specified index.
get_Item
in interface com.aspose.ms.System.Collections.Generic.IGenericList<EmailAddress>
index
- The zero-based index of the element to get or set.public final void set_Item(int index, EmailAddress value)
Gets or sets the element at the specified index.
set_Item
in interface com.aspose.ms.System.Collections.Generic.IGenericList<EmailAddress>
index
- The zero-based index of the element to get or set.public final boolean contains(EmailAddress value)
Determines whether the list contains a specific value.
value
- The object to locate in the list.public final void clear()
Removes all items from the list.
clear
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<EmailAddress>
public final int indexOf(EmailAddress value)
Determines the index of a specific item in the list.
value
- The Object
to locate in the list.value
if found in the list; otherwise, -1.public final boolean remove(EmailAddress value)
Removes the first occurrence of a specific object from the list.
value
- The Object
to remove from the list.public final void removeAt(int index)
Removes the list item at the specified index.
removeAt
in interface com.aspose.ms.System.Collections.Generic.IGenericList<EmailAddress>
index
- The zero-based index of the item to remove.public final boolean isReadOnly()
Gets a value indicating whether the list is read-only.
isReadOnly
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<EmailAddress>
public final void copyTo(EmailAddress[] array, int index)
Copies the elements to an array, starting at a particular array index.
array
- The one-dimensional array that is the destination of the elements copied from collections.
The array must have zero-based indexing.index
- The zero-based index in array at which copying begins.public final int size()
Gets the number of elements contained in the ICollection
.
size
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<EmailAddress>
ICollection
.public final Object getSyncRoot()
Gets an object that can be used to synchronize access to the ICollection
.
ICollection
.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<EmailAddress> iterator()
Returns an enumerator that iterates through a collection.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<EmailAddress>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<EmailAddress>
iterator
in interface Iterable<EmailAddress>
IEnumerator
object that can be used to iterate through the collection.public void addItem(EmailAddress value)
addItem
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<EmailAddress>
public boolean removeItem(EmailAddress value)
removeItem
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<EmailAddress>
public void insertItem(int index, EmailAddress value)
insertItem
in interface com.aspose.ms.System.Collections.Generic.IGenericList<EmailAddress>
public int indexOfItem(EmailAddress value)
indexOfItem
in interface com.aspose.ms.System.Collections.Generic.IGenericList<EmailAddress>
public boolean containsItem(EmailAddress value)
containsItem
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<EmailAddress>
public void copyToTArray(EmailAddress[] array, int index)
copyToTArray
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<EmailAddress>