public class ProcessingResult<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProcessingResult.Failure<T>
Represents a failure of a work item
|
Constructor and Description |
---|
ProcessingResult() |
Modifier and Type | Method and Description |
---|---|
void |
add(ProcessingResult<T> result)
Adds the contents of the specified ProcessingResult to this ProcessingResult
|
void |
addAllFailures(Collection<ProcessingResult.Failure<T>> c)
Adds a collection of failures
|
void |
addAllSuccesses(Collection<T> c)
Adds a collectin of successes
|
void |
addFailure(ProcessingResult.Failure<T> o)
Adds a failure
|
void |
addSuccess(T o)
Adds a success
|
List<ProcessingResult.Failure<T>> |
getFailures()
Returns the list of failures
|
List<T> |
getSuccesses()
Returns the list of successes
|
String |
toString()
Returns a string representation of this ProcessingResults object
|
public ProcessingResult()
public List<ProcessingResult.Failure<T>> getFailures()
public List<T> getSuccesses()
public void addFailure(ProcessingResult.Failure<T> o)
o
- an object representing a failurepublic void addAllFailures(Collection<ProcessingResult.Failure<T>> c)
Collection
- a collection of failurespublic void addSuccess(T o)
o
- an object representing a successpublic void addAllSuccesses(Collection<T> c)
Collection
- a collection of successespublic void add(ProcessingResult<T> result)
result
- the result to append to this resultpublic String toString()
toString
in class Object
Object.toString()
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.