public interface GenericResponse<R> extends FFDCResponse
| Modifier and Type | Method and Description |
|---|---|
void |
addAllResults(Collection<? extends R> results)
Add several results for the response
|
void |
addResult(R result)
Add single result for the response
|
default Optional<R> |
head()
Get head element from result array.
|
List<R> |
results()
Get all results of the response
|
getActionDescription, getExceptionCausedBy, getExceptionClassName, getExceptionErrorMessage, getExceptionErrorMessageId, getExceptionErrorMessageParameters, getExceptionProperties, getExceptionSystemAction, getExceptionUserAction, getRelatedHTTPCode, setActionDescription, setExceptionCausedBy, setExceptionClassName, setExceptionErrorMessage, setExceptionErrorMessageId, setExceptionErrorMessageParameters, setExceptionProperties, setExceptionSystemAction, setExceptionUserAction, setRelatedHTTPCodevoid addAllResults(Collection<? extends R> results)
results - collection with resultsvoid addResult(R result)
result - - one resultCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.