microsoft.exchange.webservices.data
Class ChangeCollection<TChange extends Change>

java.lang.Object
  extended by microsoft.exchange.webservices.data.ChangeCollection<TChange>
Type Parameters:
TChange - the generic type
All Implemented Interfaces:
java.lang.Iterable<TChange>

public final class ChangeCollection<TChange extends Change>
extends java.lang.Object
implements java.lang.Iterable<TChange>

* Represents a collection of changes as returned by a synchronization operation.


Constructor Summary
protected ChangeCollection()
          * Initializes a new instance of the class.
 
Method Summary
protected  void add(TChange change)
          * Adds the specified change.
 TChange getChangeAtIndex(int index)
          * Gets an individual change from the change collection.
 int getCount()
          * Gets the number of changes in the collection.
 boolean getMoreChangesAvailable()
          * Gets the SyncState blob returned by a synchronization operation.
 java.lang.String getSyncState()
          * Gets the SyncState blob returned by a synchronization operation.
 java.util.Iterator<TChange> iterator()
          Returns an iterator over a set of elements of type T.
protected  void setMoreChangesAvailable(boolean moreChangesAvailable)
          Sets the more changes available.
protected  void setSyncState(java.lang.String syncState)
          Sets the sync state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeCollection

protected ChangeCollection()
* Initializes a new instance of the class.

Method Detail

add

protected void add(TChange change)
* Adds the specified change.

Parameters:
change - the change

getCount

public int getCount()
* Gets the number of changes in the collection.

Returns:
the count

getChangeAtIndex

public TChange getChangeAtIndex(int index)
* Gets an individual change from the change collection.

Parameters:
index - the index
Returns:
An single change

getSyncState

public java.lang.String getSyncState()
* Gets the SyncState blob returned by a synchronization operation.

Returns:
the sync state

setSyncState

protected void setSyncState(java.lang.String syncState)
Sets the sync state.

Parameters:
syncState - the new sync state

getMoreChangesAvailable

public boolean getMoreChangesAvailable()
* Gets the SyncState blob returned by a synchronization operation.

Returns:
the more changes available

setMoreChangesAvailable

protected void setMoreChangesAvailable(boolean moreChangesAvailable)
Sets the more changes available.

Parameters:
moreChangesAvailable - the new more changes available

iterator

public java.util.Iterator<TChange> iterator()
Returns an iterator over a set of elements of type T.

Specified by:
iterator in interface java.lang.Iterable<TChange extends Change>
Returns:
an Iterator.