Interface ImportSummary
public interface ImportSummary
The current status of ImportOperations in an ImportContainer.
Example to create an instance using the builder pattern
ImportSummary importSummary = ImportSummary.builder()
.states(statesBuilder -> statesBuilder)
.total(1)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImportSummaryBuilder
builder()
builder factory method for ImportSummarystatic ImportSummaryBuilder
builder
(ImportSummary template) create builder for ImportSummary instancecopyDeep()
static ImportSummary
deepCopy
(ImportSummary template) factory method to create a deep copy of ImportSummary@NotNull @Valid OperationStates
The current ProcessingStates of ImportOperations in an ImportContainer.@NotNull Long
getTotal()
The total number of ImportOperations instates
.static ImportSummary
of()
factory methodstatic ImportSummary
of
(ImportSummary template) factory method to create a shallow copy ImportSummaryvoid
setStates
(OperationStates states) The current ProcessingStates of ImportOperations in an ImportContainer.void
The total number of ImportOperations instates
.static com.fasterxml.jackson.core.type.TypeReference<ImportSummary>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withImportSummary
(Function<ImportSummary, T> helper) accessor map function
-
Method Details
-
getStates
The current ProcessingStates of ImportOperations in an ImportContainer.
- Returns:
- states
-
getTotal
The total number of ImportOperations in
states
.- Returns:
- total
-
setStates
The current ProcessingStates of ImportOperations in an ImportContainer.
- Parameters:
states
- value to be set
-
setTotal
The total number of ImportOperations in
states
.- Parameters:
total
- value to be set
-
of
factory method- Returns:
- instance of ImportSummary
-
of
factory method to create a shallow copy ImportSummary- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
ImportSummary copyDeep() -
deepCopy
factory method to create a deep copy of ImportSummary- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ImportSummary- Returns:
- builder
-
builder
create builder for ImportSummary instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withImportSummary
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-