@Entity public class ChargeLine extends AbstractEntity<ChargeLineIdentifier> implements Priced
Modifier | Constructor and Description |
---|---|
protected |
ChargeLine()
Deprecated.
|
|
ChargeLine(org.javamoney.moneta.Money amount,
String description)
Creates a new PersistentChargeLine with the given amount and description.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
ChargeLineIdentifier |
getIdentifier()
Returns the
SalespointIdentifier . |
org.javamoney.moneta.Money |
getPrice()
Returns the price of the item.
|
String |
toString() |
equals, getId, hashCode, isNew
@Deprecated protected ChargeLine()
public ChargeLine(org.javamoney.moneta.Money amount, String description)
amount
- the value of the ChargeLinedescription
- a description of the ChargeLineNullPointerException
- if amout or description is nullpublic org.javamoney.moneta.Money getPrice()
Priced
public String getDescription()
public ChargeLineIdentifier getIdentifier()
AbstractEntity
SalespointIdentifier
.getIdentifier
in class AbstractEntity<ChargeLineIdentifier>
ChargeLineIdentifier
to uniquely identify this chargelineCopyright © 2016 Pivotal Software, Inc.. All rights reserved.