@Entity public static class ChargeLine.AttachedChargeLine extends ChargeLine
ChargeLine
that's attached to an OrderLine
. Create via
Order.addChargeLine(MonetaryAmount, String, int)
or
Order.addChargeLine(MonetaryAmount, String, OrderLine)
.ChargeLine.AttachedChargeLine
Modifier and Type | Method and Description |
---|---|
boolean |
belongsTo(OrderLine oderLine)
Returns whether the
ChargeLine.AttachedChargeLine belongs to the given OrderLine . |
OrderLine |
getOrderLine() |
static javax.money.MonetaryAmount |
sumUp(Iterable<? extends org.salespointframework.order.Priced> priced)
Sums up the prices of all given
Priced instances. |
getChargeLineIdentifier, getDescription, getId, getPrice, toString
equals, hashCode, isNew
public boolean belongsTo(OrderLine oderLine)
ChargeLine.AttachedChargeLine
belongs to the given OrderLine
.oderLine
- must not be null.public OrderLine getOrderLine()
public static javax.money.MonetaryAmount sumUp(Iterable<? extends org.salespointframework.order.Priced> priced)
Priced
instances.priced
- must not be null.Copyright © 2019. All rights reserved.