|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.manager.directory.BulkAddResult<T>
public class BulkAddResult<T>
Represents the results from an 'addAll' operation.
| Nested Class Summary | |
|---|---|
static class |
BulkAddResult.Builder<T>
|
| Method Summary | ||
|---|---|---|
static
|
builder(long attemptingToAdd)
|
|
long |
getAddedSuccessfully()
Calculates the number of entities which were successfully added, which is calculated as the number of entities which were attempted to be added minus both the failed entities (which couldn't be added) and the existing entities (which already existed and hence couldn't be added). |
|
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()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 - existingEntitiespublic static <T> BulkAddResult.Builder<T> builder(long attemptingToAdd)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||