public final class ImapMessageInfoCollection extends ImapMessageInfoCollectionBase implements com.aspose.ms.System.Collections.Generic.IGenericList<ImapMessageInfo>, com.aspose.ms.System.Collections.Generic.IGenericCollection<ImapMessageInfo>, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<ImapMessageInfo>
Provides a container for a collection of ImapMessageInfo
objects
Constructor and Description |
---|
ImapMessageInfoCollection()
Initializes a new instance of the ImapMessageCollection class.
|
ImapMessageInfoCollection(Iterable<ImapMessageInfo> messageInfoEn)
Initializes a new instance of the ImapMessageCollection class
|
Modifier and Type | Method and Description |
---|---|
void |
add(ImapMessageInfo item)
Adds the ImapMessageInfo to the ImapMessageCollection.
|
void |
addRange(Iterable<ImapMessageInfo> messageInfos)
Adds the enumeration of ImapMessageInfo objects to the end of the collection
|
List<ElementProcessingException> |
getExceptions()
Gets collection of exceptions, that occurred during message processing.
|
Object |
getSyncRoot()
Gets an object that can be used to synchronize access to the collection.
|
void |
insert(int index,
ImapMessageInfo item)
Insert the specified ImapMessagInfo object at the specified index.
|
boolean |
remove(ImapMessageInfo item)
Remove specifed ImapMessageInfo object from this collection.
|
void |
removeAt(int index)
Remove a ImapMessageInfo in specified index from this collection.
|
static ImapMessageInfo[] |
to_(ImapMessageInfoCollection messageInfoCol)
Converts collection of ImapMessageInfo to array
|
static ImapMessageInfoCollection |
to_ImapMessageInfoCollection(ImapMessageInfo[] messageInfoArr)
Converts array of ImapMessageInfo to collection
|
static ImapMessageInfoCollection |
to_ImapMessageInfoCollection(com.aspose.ms.System.Collections.Generic.List<ImapMessageInfo> messageInfoLst)
Converts list of ImapMessageInfo to collection
|
static com.aspose.ms.System.Collections.Generic.List<ImapMessageInfo> |
to_List(ImapMessageInfoCollection messageInfoCol)
Converts collection of ImapMessageInfo to list
|
addItem, clear, containsItem, copyToTArray, get_Item, get_Items, getICollection, getIList, indexOfItem, insertItem, isReadOnly, iterator, removeItem, set_Item, setItem, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get_Item, indexOfItem, insertItem, set_Item
public ImapMessageInfoCollection()
Initializes a new instance of the ImapMessageCollection class.
public ImapMessageInfoCollection(Iterable<ImapMessageInfo> messageInfoEn)
Initializes a new instance of the ImapMessageCollection class
messageInfoEn
- initial valuepublic final void add(ImapMessageInfo item)
Adds the ImapMessageInfo to the ImapMessageCollection.
item
- The ImapMessageInfo to be added.public final void addRange(Iterable<ImapMessageInfo> messageInfos)
Adds the enumeration of ImapMessageInfo objects to the end of the collection
messageInfos
- public final boolean remove(ImapMessageInfo item)
Remove specifed ImapMessageInfo object from this collection.
item
- The ImapMessageInfo object to be remove.public final void removeAt(int index)
Remove a ImapMessageInfo in specified index from this collection.
removeAt
in interface com.aspose.ms.System.Collections.Generic.IGenericList<ImapMessageInfo>
removeAt
in class com.aspose.ms.System.Collections.ObjectModel.Collection<ImapMessageInfo>
index
- The index of the message to be remove.public final void insert(int index, ImapMessageInfo item)
Insert the specified ImapMessagInfo object at the specified index.
index
- The index that the specified object will be inserted into.item
- The ImapMessagInfo object to be inserted.public static ImapMessageInfo[] to_(ImapMessageInfoCollection messageInfoCol)
Converts collection of ImapMessageInfo to array
messageInfoCol
- Collection of ImapMessageInfo to convertpublic static ImapMessageInfoCollection to_ImapMessageInfoCollection(ImapMessageInfo[] messageInfoArr)
Converts array of ImapMessageInfo to collection
messageInfoArr
- Array of ImapMessageInfo to convertpublic static com.aspose.ms.System.Collections.Generic.List<ImapMessageInfo> to_List(ImapMessageInfoCollection messageInfoCol)
Converts collection of ImapMessageInfo to list
messageInfoCol
- Collection of ImapMessageInfo to convertpublic static ImapMessageInfoCollection to_ImapMessageInfoCollection(com.aspose.ms.System.Collections.Generic.List<ImapMessageInfo> messageInfoLst)
Converts list of ImapMessageInfo to collection
messageInfoLst
- List of ImapMessageInfo to convertpublic final Object getSyncRoot()
Gets an object that can be used to synchronize access to the collection.
getSyncRoot
in class com.aspose.ms.System.Collections.ObjectModel.Collection<ImapMessageInfo>
public final List<ElementProcessingException> getExceptions()
Gets collection of exceptions, that occurred during message processing.