Class ChangeCollection<TChange extends Change>

  • 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 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