com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class PostalAddressList

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


    public class PostalAddressList
    extends Object
    implements com.aspose.ms.System.Collections.Generic.IGenericList<PostalAddress>

    List of postal addresses for a contact.

    • Constructor Detail

      • PostalAddressList

        public PostalAddressList()
    • Method Detail

      • getWorkAddress

        public final PostalAddress getWorkAddress()

        Default work address

      • setWorkAddress

        public final void setWorkAddress(PostalAddress value)

        Default work address

      • getOtherAddress

        public final PostalAddress getOtherAddress()

        Default other address

      • setOtherAddress

        public final void setOtherAddress(PostalAddress value)

        Default other address

      • getHomeAddress

        public final PostalAddress getHomeAddress()

        Default home address

      • setHomeAddress

        public final void setHomeAddress(PostalAddress value)

        Default home address

      • add

        public final void add(PostalAddress value)

        Adds an item to the list.

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

        public final void insert(int index,
                  PostalAddress 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 PostalAddress 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<PostalAddress>
        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,
                    PostalAddress value)

        Gets or sets the element at the specified index.

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

        public final boolean contains(PostalAddress 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<PostalAddress>
      • indexOf

        public final int indexOf(PostalAddress 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(PostalAddress 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<PostalAddress>
        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<PostalAddress>
        Returns:
        true if the list is read-only; otherwise, false.
      • copyTo

        public final void copyTo(PostalAddress[] 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<PostalAddress>
        Returns:
        The number of elements contained in the ICollection.
      • iterator

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

        Returns an enumerator that iterates through a collection.

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

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

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

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

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

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

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