Class OperationStatesBuilder
- All Implemented Interfaces:
Builder<OperationStates>
Example to create an instance using the builder pattern
OperationStates operationStates = OperationStates.builder()
.processing(1)
.validationFailed(1)
.unresolved(1)
.waitForMasterVariant(1)
.imported(1)
.rejected(1)
.canceled(1)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds OperationStates with checking for non-null required valuesbuilds OperationStates without checking for non-null required valuesThe number of ImportOperations in thecanceledstate.The number of ImportOperations in thecanceledstate.The number of ImportOperations in theimportedstate.The number of ImportOperations in theprocessingstate.The number of ImportOperations in therejectedstate.The number of ImportOperations in theunresolvedstate.The number of ImportOperations in thevalidationFailedstate.The number of ImportOperations in thewaitForMasterVariantstate.The number of ImportOperations in theimportedstate.static OperationStatesBuilderof()factory method for an instance of OperationStatesBuilderstatic OperationStatesBuilderof(OperationStates template) create builder for OperationStates instanceprocessing(Long processing) The number of ImportOperations in theprocessingstate.The number of ImportOperations in therejectedstate.unresolved(Long unresolved) The number of ImportOperations in theunresolvedstate.validationFailed(Long validationFailed) The number of ImportOperations in thevalidationFailedstate.waitForMasterVariant(Long waitForMasterVariant) The number of ImportOperations in thewaitForMasterVariantstate.
-
Constructor Details
-
OperationStatesBuilder
public OperationStatesBuilder()
-
-
Method Details
-
processing
The number of ImportOperations in the
processingstate.- Parameters:
processing- value to be set- Returns:
- Builder
-
validationFailed
The number of ImportOperations in the
validationFailedstate.- Parameters:
validationFailed- value to be set- Returns:
- Builder
-
unresolved
The number of ImportOperations in the
unresolvedstate.- Parameters:
unresolved- value to be set- Returns:
- Builder
-
waitForMasterVariant
The number of ImportOperations in the
waitForMasterVariantstate.- Parameters:
waitForMasterVariant- value to be set- Returns:
- Builder
-
imported
The number of ImportOperations in the
importedstate.- Parameters:
imported- value to be set- Returns:
- Builder
-
rejected
The number of ImportOperations in the
rejectedstate.- Parameters:
rejected- value to be set- Returns:
- Builder
-
canceled
The number of ImportOperations in the
canceledstate.- Parameters:
canceled- value to be set- Returns:
- Builder
-
getProcessing
The number of ImportOperations in the
processingstate.- Returns:
- processing
-
getValidationFailed
The number of ImportOperations in the
validationFailedstate.- Returns:
- validationFailed
-
getUnresolved
The number of ImportOperations in the
unresolvedstate.- Returns:
- unresolved
-
getWaitForMasterVariant
The number of ImportOperations in the
waitForMasterVariantstate.- Returns:
- waitForMasterVariant
-
getImported
The number of ImportOperations in the
importedstate.- Returns:
- imported
-
getRejected
The number of ImportOperations in the
rejectedstate.- Returns:
- rejected
-
getCanceled
The number of ImportOperations in the
canceledstate.- Returns:
- canceled
-
build
builds OperationStates with checking for non-null required values- Specified by:
buildin interfaceBuilder<OperationStates>- Returns:
- OperationStates
-
buildUnchecked
builds OperationStates without checking for non-null required values- Returns:
- OperationStates
-
of
factory method for an instance of OperationStatesBuilder- Returns:
- builder
-
of
create builder for OperationStates instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-