T
- the enum of operators public abstract class BatchOperation<T extends BatchOperationEntry<?,?>> extends Object
Constructor and Description |
---|
BatchOperation()
Creates new
BatchOperation object. |
BatchOperation(Collection<T> batchOperations)
Creates
BatchOperation object from a list of batch operation
entries. |
Modifier and Type | Method and Description |
---|---|
boolean |
addAll(BatchOperation<T> another)
Add all operations from another batch to this batch.
|
BatchOperation<T> |
addOperation(T entry)
Adds an operation.
|
void |
clear()
Removes all operations maintained in this object.
|
boolean |
equals(Object o) |
List<T> |
getOperations()
Returns the operations in this object.
|
int |
hashCode() |
int |
size()
Returns the number of operations in this object.
|
String |
toString() |
public BatchOperation()
BatchOperation
object.public BatchOperation(Collection<T> batchOperations)
BatchOperation
object from a list of batch operation
entries.batchOperations
- the list of batch operation entries.public void clear()
public int size()
public List<T> getOperations()
public BatchOperation<T> addOperation(T entry)
entry
- the operation to be addedpublic boolean addAll(BatchOperation<T> another)
another
- another batch