@Entity public class ChargeLine extends AbstractEntity<org.salespointframework.order.ChargeLineIdentifier>
| Constructor and Description |
|---|
ChargeLine(javax.money.MonetaryAmount price,
String description) |
| Modifier and Type | Method and Description |
|---|---|
org.salespointframework.order.ChargeLineIdentifier |
getChargeLineIdentifier() |
String |
getDescription() |
org.salespointframework.order.ChargeLineIdentifier |
getId() |
javax.money.MonetaryAmount |
getPrice()
Returns the price of the item.
|
static javax.money.MonetaryAmount |
sumUp(Iterable<? extends org.salespointframework.order.Priced> priced)
Sums up the prices of all given
Priced instances. |
String |
toString() |
equals, hashCode, isNewpublic ChargeLine(javax.money.MonetaryAmount price,
String description)
public org.salespointframework.order.ChargeLineIdentifier getId()
getId in interface org.springframework.data.domain.Persistable<org.salespointframework.order.ChargeLineIdentifier>public org.salespointframework.order.ChargeLineIdentifier getChargeLineIdentifier()
public javax.money.MonetaryAmount getPrice()
public String getDescription()
public static javax.money.MonetaryAmount sumUp(Iterable<? extends org.salespointframework.order.Priced> priced)
Priced instances.priced - must not be null.Copyright © 2018. All rights reserved.