public class Price extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Price.Type
Valid values are
rent, purchase, package or subscription. |
| Constructor and Description |
|---|
Price() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCurrency()
use ISO 4217
http://en.wikipedia.org/wiki/ISO_4217 for currency codes. |
URL |
getInfo()
if the type is "package" or "subscription", then info is a URL pointing to package or subscription information.
|
Double |
getPrice()
price is the price of the media object.
|
Price.Type |
getType()
Valid values are "rent", "purchase", "package" or "subscription".
|
int |
hashCode() |
void |
setCurrency(String currency)
use ISO 4217
http://en.wikipedia.org/wiki/ISO_4217 for currency codes. |
void |
setInfo(URL info)
if the type is "package" or "subscription", then info is a URL pointing to package or subscription information.
|
void |
setPrice(Double price)
price is the price of the media object.
|
void |
setType(Price.Type type)
Valid values are "rent", "purchase", "package" or "subscription".
|
String |
toString() |
public Price.Type getType()
public void setType(Price.Type type)
type - the typepublic Double getPrice()
public void setPrice(Double price)
price - the pricepublic String getCurrency()
http://en.wikipedia.org/wiki/ISO_4217 for currency codes. This is an optional attribute.public void setCurrency(String currency)
http://en.wikipedia.org/wiki/ISO_4217 for currency codes. This is an optional attribute.currency - ISO 4217 currency codepublic URL getInfo()
public void setInfo(URL info)
info - urlCopyright © 2021. All rights reserved.