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 ImportSummaryBuilderbuilder()builder factory method for ImportSummarystatic ImportSummaryBuilderbuilder(ImportSummary template) create builder for ImportSummary instancecopyDeep()static ImportSummarydeepCopy(ImportSummary template) factory method to create a deep copy of ImportSummary@NotNull @Valid OperationStatesThe current ProcessingStates of ImportOperations in an ImportContainer.@NotNull LonggetTotal()The total number of ImportOperations instates.static ImportSummaryof()factory methodstatic ImportSummaryof(ImportSummary template) factory method to create a shallow copy ImportSummaryvoidsetStates(OperationStates states) The current ProcessingStates of ImportOperations in an ImportContainer.voidThe total number of ImportOperations instates.static com.fasterxml.jackson.core.type.TypeReference<ImportSummary>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithImportSummary(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
-