com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class EmailAddressList

  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.Generic.IGenericCollection<EmailAddress>, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<EmailAddress>, com.aspose.ms.System.Collections.Generic.IGenericList<EmailAddress>, com.aspose.ms.System.Collections.IEnumerable<EmailAddress>, Iterable<EmailAddress>


    public class EmailAddressList
    extends Object
    implements com.aspose.ms.System.Collections.Generic.IGenericList<EmailAddress>

    List of email addresses for a contact

    • Constructor Detail

      • EmailAddressList

        public EmailAddressList()
    • Method Detail

      • getWork

        public final EmailAddress getWork()

        Default work email address.

      • setWork

        public final void setWork(EmailAddress value)

        Default work email address.

      • getHome

        public final EmailAddress getHome()

        Default home email address.

      • setHome

        public final void setHome(EmailAddress value)

        Default home email address.

      • getEmail1

        public final EmailAddress getEmail1()

        Default email1 address.

      • setEmail1

        public final void setEmail1(EmailAddress value)

        Default email1 address.

      • getEmail2

        public final EmailAddress getEmail2()

        Default email2 address.

      • setEmail2

        public final void setEmail2(EmailAddress value)

        Default email2 address.

      • getEmail3

        public final EmailAddress getEmail3()

        Default email3 address.

      • setEmail3

        public final void setEmail3(EmailAddress value)

        Default email3 address.

      • get_Item

        public final EmailAddress get_Item(EmailAddressCategory category)

        Default email address for specified category.

        Parameters:
        category - Category for email address
        Returns:
        default email address for specified category.
      • set_Item

        public final void set_Item(EmailAddressCategory category,
                    EmailAddress value)

        Default email address for specified category.

        Parameters:
        category - Category for email address
      • add

        public final void add(EmailAddress value)

        Adds an item to the list.

        Parameters:
        value - The Object to add to the list.
      • insert

        public final void insert(int index,
                  EmailAddress value)

        Inserts an item to the list at the specified index.

        Parameters:
        index - The zero-based index at which value should be inserted.
        value - The Object to insert into the list.
      • get_Item

        public final EmailAddress get_Item(int index)

        Gets or sets the element at the specified index.

        Specified by:
        get_Item in interface com.aspose.ms.System.Collections.Generic.IGenericList<EmailAddress>
        Parameters:
        index - The zero-based index of the element to get or set.
        Returns:
        The element at the specified index.
      • set_Item

        public final void set_Item(int index,
                    EmailAddress value)

        Gets or sets the element at the specified index.

        Specified by:
        set_Item in interface com.aspose.ms.System.Collections.Generic.IGenericList<EmailAddress>
        Parameters:
        index - The zero-based index of the element to get or set.
      • contains

        public final boolean contains(EmailAddress value)

        Determines whether the list contains a specific value.

        Parameters:
        value - The object to locate in the list.
        Returns:
        true if the object is found in the list; otherwise, false.
      • clear

        public final void clear()

        Removes all items from the list.

        Specified by:
        clear in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<EmailAddress>
      • indexOf

        public final int indexOf(EmailAddress value)

        Determines the index of a specific item in the list.

        Parameters:
        value - The Object to locate in the list.
        Returns:
        The index of value if found in the list; otherwise, -1.
      • remove

        public final boolean remove(EmailAddress value)

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

        Parameters:
        value - The Object to remove from the list.
      • removeAt

        public final void removeAt(int index)

        Removes the list item at the specified index.

        Specified by:
        removeAt in interface com.aspose.ms.System.Collections.Generic.IGenericList<EmailAddress>
        Parameters:
        index - The zero-based index of the item to remove.
      • isReadOnly

        public final boolean isReadOnly()

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

        Specified by:
        isReadOnly in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<EmailAddress>
        Returns:
        true if the list is read-only; otherwise, false.
      • copyTo

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

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

        Parameters:
        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.
      • size

        public final int size()

        Gets the number of elements contained in the ICollection.

        Specified by:
        size in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<EmailAddress>
        Returns:
        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:
        An object that can be used to synchronize access to the ICollection.
      • iterator

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

        Returns an enumerator that iterates through a collection.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<EmailAddress>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<EmailAddress>
        Specified by:
        iterator in interface Iterable<EmailAddress>
        Returns:
        An IEnumerator object that can be used to iterate through the collection.
      • addItem

        public void addItem(EmailAddress value)
        Specified by:
        addItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<EmailAddress>
      • removeItem

        public boolean removeItem(EmailAddress value)
        Specified by:
        removeItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<EmailAddress>
      • insertItem

        public void insertItem(int index,
                      EmailAddress value)
        Specified by:
        insertItem in interface com.aspose.ms.System.Collections.Generic.IGenericList<EmailAddress>
      • indexOfItem

        public int indexOfItem(EmailAddress value)
        Specified by:
        indexOfItem in interface com.aspose.ms.System.Collections.Generic.IGenericList<EmailAddress>
      • containsItem

        public boolean containsItem(EmailAddress value)
        Specified by:
        containsItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<EmailAddress>
      • copyToTArray

        public void copyToTArray(EmailAddress[] array,
                        int index)
        Specified by:
        copyToTArray in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<EmailAddress>

Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.