Class UnknownChangeBuilder
java.lang.Object
com.commercetools.history.models.change.UnknownChangeBuilder
- All Implemented Interfaces:
Builder<UnknownChange>
UnknownChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
UnknownChange unknownChange = UnknownChange.builder()
.change("{change}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds UnknownChange with checking for non-null required valuesbuilds UnknownChange without checking for non-null required valuesIdentifier for the type of modification.Identifier for the type of modification.Value after the change.Value before the change.Value after the change.static UnknownChangeBuilder
of()
factory method for an instance of UnknownChangeBuilderstatic UnknownChangeBuilder
of
(UnknownChange template) create builder for UnknownChange instancepreviousValue
(Object previousValue) Value before the change.
-
Constructor Details
-
UnknownChangeBuilder
public UnknownChangeBuilder()
-
-
Method Details
-
change
Identifier for the type of modification.
- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
getChange
Identifier for the type of modification.
- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds UnknownChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<UnknownChange>
- Returns:
- UnknownChange
-
buildUnchecked
builds UnknownChange without checking for non-null required values- Returns:
- UnknownChange
-
of
factory method for an instance of UnknownChangeBuilder- Returns:
- builder
-
of
create builder for UnknownChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-