Class ChangeCollection<TChange extends Change>
- java.lang.Object
-
- 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
Constructors Constructor Description ChangeCollection()Initializes a new instance of the class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(TChange change)Adds the specified change.TChangegetChangeAtIndex(int index)Gets an individual change from the change collection.intgetCount()Gets the number of changes in the collection.booleangetMoreChangesAvailable()Gets the SyncState blob returned by a synchronization operation.StringgetSyncState()Gets the SyncState blob returned by a synchronization operation.Iterator<TChange>iterator()Returns an iterator over a set of elements of type T.voidsetMoreChangesAvailable(boolean moreChangesAvailable)Sets the more changes available.voidsetSyncState(String syncState)Sets the sync state.-
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
-
ChangeCollection
public ChangeCollection()
Initializes a new instance of the class.
-
-
Method Detail
-
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
-
-