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

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

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

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


Constructor Summary
ChangeCollection()
          Initializes a new instance of the class.
 
Method Summary
 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.
 String getSyncState()
          Gets the SyncState blob returned by a synchronization operation.
 Iterator<TChange> iterator()
          Returns an iterator over a set of elements of type T.
 void setMoreChangesAvailable(boolean moreChangesAvailable)
          Sets the more changes available.
 void setSyncState(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

public ChangeCollection()
Initializes a new instance of the class.

Method Detail

add

public 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 String getSyncState()
Gets the SyncState blob returned by a synchronization operation.

Returns:
the sync state

setSyncState

public void setSyncState(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

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

Parameters:
moreChangesAvailable - the new more changes available

iterator

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

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


Copyright © 2012–2015 Microsoft. All rights reserved.