Modifier and Type | Method and Description |
---|---|
CartScore |
build()
Creates a new instance of
CartScore with the values of this builder. |
static CartScoreBuilder |
of(CartScore template)
Creates a new object initialized with the fields of the template parameter.
|
static CartScoreBuilder |
of(Long score,
javax.money.MonetaryAmount price)
Creates a new object initialized with the given values.
|
static CartScoreBuilder |
of(Long score,
PriceFunction priceFunction)
Creates a new object initialized with the given values.
|
public CartScore build()
CartScore
with the values of this builder.public static CartScoreBuilder of(Long score, javax.money.MonetaryAmount price)
score
- initial value for the CartScore.getScore()
propertyprice
- initial value for the ShippingRatePriceTier.getPrice()
propertypublic static CartScoreBuilder of(Long score, PriceFunction priceFunction)
priceFunction
- initial value for the CartScore.getPriceFunction()
propertypublic static CartScoreBuilder of(CartScore template)
template
- the template