public abstract class Price extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
Price() |
Modifier and Type | Method and Description |
---|---|
static Price |
create(BigDecimal newAmount,
String newCurrencyCode)
Create a new price object.
|
abstract BigDecimal |
getAmount()
The amount to pay.
|
abstract String |
getCurrencyCode()
The ISO 4217 currency code of the price.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
public abstract BigDecimal getAmount()
public abstract String getCurrencyCode()
public static Price create(BigDecimal newAmount, String newCurrencyCode)
newAmount
- amountnewCurrencyCode
- currency code