|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kcb.quartz.ProcessingResult<T>
public class ProcessingResult<T>
Encapsulates the number of successes and failures in a giving processing run
| Nested Class Summary | |
|---|---|
static class |
ProcessingResult.Failure<T>
Represents a failure of a work item |
| Constructor Summary | |
|---|---|
ProcessingResult()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessingResult()
| Method Detail |
|---|
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 ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||