Class ItemCollection<TItem extends Item>
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.ItemCollection<TItem>
-
- Type Parameters:
TItem- the generic type. The type of item the collection contains.
- All Implemented Interfaces:
Iterable<TItem>,ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
public final class ItemCollection<TItem extends Item> extends ComplexProperty implements Iterable<TItem>
Represents a collection of item.
-
-
Constructor Summary
Constructors Constructor Description ItemCollection()Initializes a new instance of the "ItemCollection<TItem>" class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCount()Gets the total number of item in the collection.TItemgetItem(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.voidloadFromXml(EwsServiceXmlReader reader, String localElementName)Loads from XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeElementsToXml, writeToXml, writeToXml
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
ItemCollection
public ItemCollection()
Initializes a new instance of the "ItemCollection<TItem>" class.
-
-
Method Detail
-
loadFromXml
public void loadFromXml(EwsServiceXmlReader reader, String localElementName) throws Exception
Loads from XML.- Overrides:
loadFromXmlin classComplexProperty- Parameters:
reader- The reader.localElementName- Name of the local element.- Throws:
Exception- the exception
-
getCount
public int getCount()
Gets the total number of item in the collection.- Returns:
- the count
-
getItem
public TItem getItem(int index)
Gets the item at the specified index.- Parameters:
index- The zero-based index of the item to get.- Returns:
- The item at the specified index.
-
getIterator
public Iterator<TItem> getIterator()
Gets an iterator that iterates through the elements of the collection.- Returns:
- An Iterator for the collection.
-
-