T
- the enum of operators public abstract class BatchOperation<T extends BatchOperationEntry<?,?>>
extends java.lang.Object
Constructor and Description |
---|
BatchOperation()
Creates new
BatchOperation object. |
BatchOperation(java.util.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(java.lang.Object o) |
java.util.List<T> |
getOperations()
Returns the operations in this object.
|
int |
hashCode() |
int |
size()
Returns the number of operations in this object.
|
java.lang.String |
toString() |
public BatchOperation()
BatchOperation
object.public BatchOperation(java.util.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 java.util.List<T> getOperations()
public BatchOperation<T> addOperation(T entry)
entry
- the operation to be addedpublic boolean addAll(BatchOperation<T> another)
another
- another batchpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object