Modifier and Type | Method and Description |
---|---|
PriceTier |
build()
Creates a new instance of
PriceTier with the values of this builder. |
PriceTierBuilder |
minimumQuantity(Integer minimumQuantity)
Sets the
minimumQuantity property of this builder. |
static PriceTierBuilder |
of(Integer minimumQuantity,
javax.money.MonetaryAmount value)
Creates a new object initialized with the given values.
|
static PriceTierBuilder |
of(PriceTier template)
Creates a new object initialized with the fields of the template parameter.
|
PriceTierBuilder |
value(javax.money.MonetaryAmount value)
Sets the
value property of this builder. |
public PriceTierBuilder minimumQuantity(Integer minimumQuantity)
minimumQuantity
property of this builder.minimumQuantity
- the value for PriceTier.getMinimumQuantity()
public PriceTierBuilder value(javax.money.MonetaryAmount value)
value
property of this builder.value
- the value for PriceTier.getValue()
public PriceTier build()
PriceTier
with the values of this builder.public static PriceTierBuilder of(Integer minimumQuantity, javax.money.MonetaryAmount value)
minimumQuantity
- initial value for the PriceTier.getMinimumQuantity()
propertyvalue
- initial value for the PriceTier.getValue()
propertypublic static PriceTierBuilder of(PriceTier template)
template
- the template