ImapMessageInfoCollection

Inheritance: java.lang.Object, com.aspose.ms.System.Collections.ObjectModel.Collection, com.aspose.email.ImapMessageInfoCollectionBase

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

public final class ImapMessageInfoCollection extends ImapMessageInfoCollectionBase implements System.Collections.Generic.IGenericList<ImapMessageInfo>, System.Collections.Generic.IGenericCollection<ImapMessageInfo>, System.Collections.Generic.IGenericEnumerable<ImapMessageInfo>

Provides a container for a collection of ImapMessageInfo objects

Constructors

Constructor Description
ImapMessageInfoCollection() Initializes a new instance of the ImapMessageCollection class.
ImapMessageInfoCollection(Iterable messageInfoEn) Initializes a new instance of the ImapMessageCollection class

Methods

Method Description
add(ImapMessageInfo item) Adds the ImapMessageInfo to the ImapMessageCollection.
addRange(Iterable messageInfos) Adds the enumeration of ImapMessageInfo objects to the end of the collection
remove(ImapMessageInfo item) Remove specifed ImapMessageInfo object from this collection.
removeAt(int index) Remove a ImapMessageInfo in specified index from this collection.
insert(int index, ImapMessageInfo item) Insert the specified ImapMessagInfo object at the specified index.
to_(ImapMessageInfoCollection messageInfoCol) Converts collection of ImapMessageInfo to array
to_ImapMessageInfoCollection(ImapMessageInfo[] messageInfoArr) Converts array of ImapMessageInfo to collection
to_List(ImapMessageInfoCollection messageInfoCol) Converts collection of ImapMessageInfo to list
to_ImapMessageInfoCollection(System.Collections.Generic.List messageInfoLst) Converts list of ImapMessageInfo to collection
getSyncRoot() Gets an object that can be used to synchronize access to the collection.
getExceptions() Gets collection of exceptions, that occurred during message processing.

ImapMessageInfoCollection()

public ImapMessageInfoCollection()

Initializes a new instance of the ImapMessageCollection class.

ImapMessageInfoCollection(Iterable messageInfoEn)

public ImapMessageInfoCollection(Iterable<ImapMessageInfo> messageInfoEn)

Initializes a new instance of the ImapMessageCollection class

Parameters:

Parameter Type Description
messageInfoEn java.lang.Iterable<com.aspose.email.ImapMessageInfo> initial value

add(ImapMessageInfo item)

public final void add(ImapMessageInfo item)

Adds the ImapMessageInfo to the ImapMessageCollection.

Parameters:

Parameter Type Description
item ImapMessageInfo The ImapMessageInfo to be added.

addRange(Iterable messageInfos)

public final void addRange(Iterable<ImapMessageInfo> messageInfos)

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

Parameters:

Parameter Type Description
messageInfos java.lang.Iterable<com.aspose.email.ImapMessageInfo>

remove(ImapMessageInfo item)

public final boolean remove(ImapMessageInfo item)

Remove specifed ImapMessageInfo object from this collection.

Parameters:

Parameter Type Description
item ImapMessageInfo The ImapMessageInfo object to be remove.

Returns: boolean - False if this collection doesn’t contains specified object.True if removed successfully.

removeAt(int index)

public final void removeAt(int index)

Remove a ImapMessageInfo in specified index from this collection.

Parameters:

Parameter Type Description
index int The index of the message to be remove.

insert(int index, ImapMessageInfo item)

public final void insert(int index, ImapMessageInfo item)

Insert the specified ImapMessagInfo object at the specified index.

Parameters:

Parameter Type Description
index int The index that the specified object will be inserted into.
item ImapMessageInfo The ImapMessagInfo object to be inserted.

to_(ImapMessageInfoCollection messageInfoCol)

public static ImapMessageInfo[] to_(ImapMessageInfoCollection messageInfoCol)

Converts collection of ImapMessageInfo to array

Parameters:

Parameter Type Description
messageInfoCol ImapMessageInfoCollection Collection of ImapMessageInfo to convert

Returns: com.aspose.email.ImapMessageInfo[] - Array of ImapMessageInfo

to_ImapMessageInfoCollection(ImapMessageInfo[] messageInfoArr)

public static ImapMessageInfoCollection to_ImapMessageInfoCollection(ImapMessageInfo[] messageInfoArr)

Converts array of ImapMessageInfo to collection

Parameters:

Parameter Type Description
messageInfoArr com.aspose.email.ImapMessageInfo[] Array of ImapMessageInfo to convert

Returns: ImapMessageInfoCollection - Collection of ImapMessageInfo

to_List(ImapMessageInfoCollection messageInfoCol)

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

Converts collection of ImapMessageInfo to list

Parameters:

Parameter Type Description
messageInfoCol ImapMessageInfoCollection Collection of ImapMessageInfo to convert

Returns: com.aspose.ms.System.Collections.Generic.List<com.aspose.email.ImapMessageInfo> - List of ImapMessageInfo

to_ImapMessageInfoCollection(System.Collections.Generic.List messageInfoLst)

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

Converts list of ImapMessageInfo to collection

Parameters:

Parameter Type Description
messageInfoLst com.aspose.ms.System.Collections.Generic.List<com.aspose.email.ImapMessageInfo> List of ImapMessageInfo to convert

Returns: ImapMessageInfoCollection - Collection of ImapMessageInfo

getSyncRoot()

public final Object getSyncRoot()

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

Returns: java.lang.Object

getExceptions()

public final List<ElementProcessingException> getExceptions()

Gets collection of exceptions, that occurred during message processing.

Returns: java.util.List<com.aspose.email.ElementProcessingException>