public class BulkAddResult<T> extends Object
Constructor and Description |
---|
BulkAddResult(long attemptingToAdd,
boolean overwrite) |
Modifier and Type | Method and Description |
---|---|
void |
addExistingEntity(T entity) |
void |
addFailedEntities(Collection<T> entities) |
void |
addFailedEntity(T entity) |
long |
getAddedSuccessfully() |
long |
getAttemptedToAdd() |
Collection<T> |
getExistingEntities()
Returns the entities which did not get overwritten
during the bulk add process.
|
Collection<T> |
getFailedEntities()
Returns the entities which did failed to be
added during the bulk add process.
|
boolean |
isOverwriteUsed() |
public void addFailedEntities(Collection<T> entities)
public void addFailedEntity(T entity)
public void addExistingEntity(T entity)
public Collection<T> getFailedEntities()
public Collection<T> getExistingEntities()
overwrite
is true
.public boolean isOverwriteUsed()
true
iff the overwriting was requested
during the bulk add process.public long getAttemptedToAdd()
public long getAddedSuccessfully()
attemptedToAdd - failedEntities - existingEntities
Copyright © 2013 Atlassian. All Rights Reserved.