TItem
- the generic type. The type of item the collection contains.public final class ItemCollection<TItem extends Item> extends ComplexProperty implements Iterable<TItem>
Constructor and Description |
---|
ItemCollection()
Initializes a new instance of the "ItemCollection<TItem>" class.
|
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Gets the total number of item in the collection.
|
TItem |
getItem(int index)
Gets the item at the specified index.
|
Iterator<TItem> |
getIterator()
Gets an iterator that iterates through the elements of the collection.
|
Iterator<TItem> |
iterator()
Returns an iterator over a set of elements of type T.
|
void |
loadFromXml(EwsServiceXmlReader reader,
String localElementName)
Loads from XML.
|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeElementsToXml, writeToXml, writeToXml
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ItemCollection()
public void loadFromXml(EwsServiceXmlReader reader, String localElementName) throws Exception
loadFromXml
in class ComplexProperty
reader
- The reader.localElementName
- Name of the local element.Exception
- the exceptionpublic int getCount()
public TItem getItem(int index)
index
- The zero-based index of the item to get.public Iterator<TItem> getIterator()
Copyright © 2012–2015 Microsoft. All rights reserved.