Class SetPropertyChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetPropertyChangeBuilder
- All Implemented Interfaces:
Builder<SetPropertyChange>
SetPropertyChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetPropertyChange setPropertyChange = SetPropertyChange.builder()
.change("{change}")
.path("{path}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SetPropertyChange with checking for non-null required valuesbuilds SetPropertyChange without checking for non-null required valuesset the value to the changevalue of change}Value after the change.getPath()
Path to the property that was updated.Value before the change.Value after the change.static SetPropertyChangeBuilder
of()
factory method for an instance of SetPropertyChangeBuilderstatic SetPropertyChangeBuilder
of
(SetPropertyChange template) create builder for SetPropertyChange instancePath to the property that was updated.previousValue
(Object previousValue) Value before the change.
-
Constructor Details
-
SetPropertyChangeBuilder
public SetPropertyChangeBuilder()
-
-
Method Details
-
change
set the value to the change- 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
-
path
Path to the property that was updated.
- Parameters:
path
- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
getPath
Path to the property that was updated.
- Returns:
- path
-
build
builds SetPropertyChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetPropertyChange>
- Returns:
- SetPropertyChange
-
buildUnchecked
builds SetPropertyChange without checking for non-null required values- Returns:
- SetPropertyChange
-
of
factory method for an instance of SetPropertyChangeBuilder- Returns:
- builder
-
of
create builder for SetPropertyChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-