public final class OrderByCollection extends Object implements Iterable<Map<PropertyDefinitionBase,SortDirection>>
Modifier | Constructor and Description |
---|---|
protected |
OrderByCollection()
Initializes a new instance of the OrderByCollection class.
|
Modifier and Type | Method and Description |
---|---|
void |
add(PropertyDefinitionBase propertyDefinition,
SortDirection sortDirection)
Adds the specified property definition / sort direction pair to the
collection.
|
void |
clear()
Removes all elements from the collection.
|
protected boolean |
contains(PropertyDefinitionBase propertyDefinition)
Determines whether the collection contains the specified property
definition.
|
int |
count()
Gets the number of elements contained in the collection.
|
Iterator<Map<PropertyDefinitionBase,SortDirection>> |
getEnumerator()
Returns an enumerator that iterates through the collection.
|
Map<PropertyDefinitionBase,SortDirection> |
getPropertyDefinitionSortDirectionPair(int index)
Gets the element at the specified index from the collection.
|
Iterator<Map<PropertyDefinitionBase,SortDirection>> |
iterator() |
boolean |
remove(PropertyDefinitionBase propertyDefinition)
Removes the specified property definition from the collection.
|
void |
removeAt(int index)
Removes the element at the specified index from the collection.
|
boolean |
tryGetValue(PropertyDefinitionBase propertyDefinition,
OutParam<SortDirection> sortDirection)
Tries to get the value for a property definition in the collection.
|
protected void |
writeToXml(EwsServiceXmlWriter writer,
String xmlElementName)
Writes to XML.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected OrderByCollection()
public void add(PropertyDefinitionBase propertyDefinition, SortDirection sortDirection) throws ServiceLocalException
propertyDefinition
- the property definitionsortDirection
- the sort directionServiceLocalException
- the service local exceptionpublic void clear()
protected boolean contains(PropertyDefinitionBase propertyDefinition)
propertyDefinition
- the property definitionpublic int count()
public boolean remove(PropertyDefinitionBase propertyDefinition)
propertyDefinition
- the property definitionpublic void removeAt(int index)
index
- the indexpublic boolean tryGetValue(PropertyDefinitionBase propertyDefinition, OutParam<SortDirection> sortDirection)
propertyDefinition
- the property definitionsortDirection
- the sort directionprotected void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) throws XMLStreamException, ServiceXmlSerializationException
writer
- the writerxmlElementName
- the xml element nameXMLStreamException
- the XML stream exceptionServiceXmlSerializationException
- the service xml serialization exceptionpublic Iterator<Map<PropertyDefinitionBase,SortDirection>> iterator()
iterator
in interface Iterable<Map<PropertyDefinitionBase,SortDirection>>
public Map<PropertyDefinitionBase,SortDirection> getPropertyDefinitionSortDirectionPair(int index)
index
- the indexpublic Iterator<Map<PropertyDefinitionBase,SortDirection>> getEnumerator()
Copyright © 2012–2015 Microsoft. All rights reserved.