com.vodafone360.people.engine.contactsync
Class NativeContactsApi2.BatchOperation

java.lang.Object
  extended by com.vodafone360.people.engine.contactsync.NativeContactsApi2.BatchOperation
Enclosing class:
NativeContactsApi2

private class NativeContactsApi2.BatchOperation
extends java.lang.Object

Inner class for applying batches. TODO: Move to own class if batches become supported in other areas


Field Summary
(package private)  java.util.ArrayList<ContentProviderOperation> mOperations
           
 
Constructor Summary
NativeContactsApi2.BatchOperation()
          Default constructor
 
Method Summary
 void add(ContentProviderOperation cpo)
          Adds a new operation to the batch
 void clear()
          Clears all operations in the batch Effectively resets the batch.
 ContentProviderResult[] execute()
           
 int size()
          Current size of the batch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mOperations

java.util.ArrayList<ContentProviderOperation> mOperations
Constructor Detail

NativeContactsApi2.BatchOperation

public NativeContactsApi2.BatchOperation()
Default constructor

Method Detail

size

public int size()
Current size of the batch

Returns:
Size of the batch

add

public void add(ContentProviderOperation cpo)
Adds a new operation to the batch

Parameters:
cpo - The

clear

public void clear()
Clears all operations in the batch Effectively resets the batch.


execute

public ContentProviderResult[] execute()


JavaDoc