public class BatchResult<T> extends Object
Constructor and Description |
---|
BatchResult(int totalEntities) |
Modifier and Type | Method and Description |
---|---|
void |
addFailure(T entity) |
void |
addFailures(Collection<? extends T> entities) |
void |
addSuccess(T entity) |
void |
addSuccesses(Collection<? extends T> entities) |
List<T> |
getFailedEntities() |
List<T> |
getSuccessfulEntities() |
int |
getTotalAttempted() |
int |
getTotalSuccessful() |
boolean |
hasFailures() |
static <T,V> BatchResult<V> |
transform(BatchResult<T> batchResult,
Function<T,V> transformer) |
static <T,V,K extends BatchResult<V>> |
transform(BatchResult<T> batchResult,
Function<T,V> transformer,
Supplier<K> supplier) |
public static <T,V,K extends BatchResult<V>> K transform(BatchResult<T> batchResult, Function<T,V> transformer, Supplier<K> supplier)
public static <T,V> BatchResult<V> transform(BatchResult<T> batchResult, Function<T,V> transformer)
public void addSuccess(T entity)
public void addSuccesses(Collection<? extends T> entities)
public void addFailure(T entity)
public void addFailures(Collection<? extends T> entities)
public boolean hasFailures()
public int getTotalAttempted()
public int getTotalSuccessful()
Copyright © 2020 Atlassian. All rights reserved.