Class ChangeValueAbsoluteChangeValueBuilder
java.lang.Object
com.commercetools.history.models.change_value.ChangeValueAbsoluteChangeValueBuilder
- All Implemented Interfaces:
Builder<ChangeValueAbsoluteChangeValue>
public class ChangeValueAbsoluteChangeValueBuilder
extends Object
implements Builder<ChangeValueAbsoluteChangeValue>
ChangeValueAbsoluteChangeValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChangeValueAbsoluteChangeValue changeValueAbsoluteChangeValue = ChangeValueAbsoluteChangeValue.builder()
.plusMoney(moneyBuilder -> moneyBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMoney
(Function<MoneyBuilder, Money> builder) Money values in different currencies.build()
builds ChangeValueAbsoluteChangeValue with checking for non-null required valuesbuilds ChangeValueAbsoluteChangeValue without checking for non-null required valuesgetMoney()
Money values in different currencies.Money values in different currencies.Money values in different currencies.of()
factory method for an instance of ChangeValueAbsoluteChangeValueBuilderof
(ChangeValueAbsoluteChangeValue template) create builder for ChangeValueAbsoluteChangeValue instanceMoney values in different currencies.plusMoney
(Function<MoneyBuilder, MoneyBuilder> builder) Money values in different currencies.setMoney
(Function<MoneyBuilder, Money> builder) Money values in different currencies.withMoney
(Function<MoneyBuilder, MoneyBuilder> builder) Money values in different currencies.
-
Constructor Details
-
ChangeValueAbsoluteChangeValueBuilder
public ChangeValueAbsoluteChangeValueBuilder()
-
-
Method Details
-
money
Money values in different currencies.
- Parameters:
money
- value to be set- Returns:
- Builder
-
money
Money values in different currencies.
- Parameters:
money
- value to be set- Returns:
- Builder
-
plusMoney
Money values in different currencies.
- Parameters:
money
- value to be set- Returns:
- Builder
-
plusMoney
Money values in different currencies.
- Parameters:
builder
- function to build the money value- Returns:
- Builder
-
withMoney
Money values in different currencies.
- Parameters:
builder
- function to build the money value- Returns:
- Builder
-
addMoney
Money values in different currencies.
- Parameters:
builder
- function to build the money value- Returns:
- Builder
-
setMoney
Money values in different currencies.
- Parameters:
builder
- function to build the money value- Returns:
- Builder
-
getMoney
Money values in different currencies.
- Returns:
- money
-
build
builds ChangeValueAbsoluteChangeValue with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChangeValueAbsoluteChangeValue>
- Returns:
- ChangeValueAbsoluteChangeValue
-
buildUnchecked
builds ChangeValueAbsoluteChangeValue without checking for non-null required values- Returns:
- ChangeValueAbsoluteChangeValue
-
of
factory method for an instance of ChangeValueAbsoluteChangeValueBuilder- Returns:
- builder
-
of
create builder for ChangeValueAbsoluteChangeValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-