com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class ImapMessageInfoCollection

    • Constructor Detail

      • ImapMessageInfoCollection

        public ImapMessageInfoCollection()

        Initializes a new instance of the ImapMessageCollection class.

      • ImapMessageInfoCollection

        public ImapMessageInfoCollection(Iterable<ImapMessageInfo> messageInfoEn)

        Initializes a new instance of the ImapMessageCollection class

        Parameters:
        messageInfoEn - initial value
    • Method Detail

      • add

        public final void add(ImapMessageInfo item)

        Adds the ImapMessageInfo to the ImapMessageCollection.

        Parameters:
        item - The ImapMessageInfo to be added.
      • addRange

        public final void addRange(Iterable<ImapMessageInfo> messageInfos)

        Adds the enumeration of ImapMessageInfo objects to the end of the collection

        Parameters:
        messageInfos -
      • remove

        public final boolean remove(ImapMessageInfo item)

        Remove specifed ImapMessageInfo object from this collection.

        Parameters:
        item - The ImapMessageInfo object to be remove.
        Returns:
        False if this collection doesn't contains specified object.True if removed successfully.
      • removeAt

        public final void removeAt(int index)

        Remove a ImapMessageInfo in specified index from this collection.

        Specified by:
        removeAt in interface com.aspose.ms.System.Collections.Generic.IGenericList<ImapMessageInfo>
        Overrides:
        removeAt in class com.aspose.ms.System.Collections.ObjectModel.Collection<ImapMessageInfo>
        Parameters:
        index - The index of the message to be remove.
      • insert

        public final void insert(int index,
                  ImapMessageInfo item)

        Insert the specified ImapMessagInfo object at the specified index.

        Parameters:
        index - The index that the specified object will be inserted into.
        item - The ImapMessagInfo object to be inserted.
      • to_

        public static ImapMessageInfo[] to_(ImapMessageInfoCollection messageInfoCol)

        Converts collection of ImapMessageInfo to array

        Parameters:
        messageInfoCol - Collection of ImapMessageInfo to convert
        Returns:
        Array of ImapMessageInfo
      • to_ImapMessageInfoCollection

        public static ImapMessageInfoCollection to_ImapMessageInfoCollection(ImapMessageInfo[] messageInfoArr)

        Converts array of ImapMessageInfo to collection

        Parameters:
        messageInfoArr - Array of ImapMessageInfo to convert
        Returns:
        Collection of ImapMessageInfo
      • to_List

        public static com.aspose.ms.System.Collections.Generic.List<ImapMessageInfo> to_List(ImapMessageInfoCollection messageInfoCol)

        Converts collection of ImapMessageInfo to list

        Parameters:
        messageInfoCol - Collection of ImapMessageInfo to convert
        Returns:
        List of ImapMessageInfo
      • to_ImapMessageInfoCollection

        public static ImapMessageInfoCollection to_ImapMessageInfoCollection(com.aspose.ms.System.Collections.Generic.List<ImapMessageInfo> messageInfoLst)

        Converts list of ImapMessageInfo to collection

        Parameters:
        messageInfoLst - List of ImapMessageInfo to convert
        Returns:
        Collection of ImapMessageInfo
      • getSyncRoot

        public final Object getSyncRoot()

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

        Overrides:
        getSyncRoot in class com.aspose.ms.System.Collections.ObjectModel.Collection<ImapMessageInfo>
      • getExceptions

        public final List<ElementProcessingException> getExceptions()

        Gets collection of exceptions, that occurred during message processing.