public class PriceModel extends Object implements Comparable<PriceModel>
| Modifier and Type | Field and Description |
|---|---|
static int |
PRICE_IN_CENT_PAID_BUT_UNKNOWN |
| Constructor and Description |
|---|
PriceModel() |
PriceModel(Integer fromMinute,
Integer untilMinute,
Integer interval,
Integer priceInCent,
Integer priority,
String description,
Integer maxPriceInCent,
Currency currency) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(PriceModel o) |
boolean |
equals(Object o) |
Currency |
getCurrency() |
protected String |
getCurrencyAsString(Integer priceInCent)
Deprecated.
|
protected String |
getCurrencyAsString(Integer priceInCent,
String decimalSeparator,
String currencySymbol,
boolean displayBeforePrice) |
String |
getDescription() |
Integer |
getFromMinute() |
Integer |
getInterval() |
Integer |
getMaxPriceInCent() |
Integer |
getPriceInCent() |
Integer |
getPriority() |
Integer |
getUntilMinute() |
int |
hashCode() |
void |
setCurrency(Currency currency) |
void |
setDescription(String description) |
void |
setFromMinute(Integer fromMinute) |
void |
setInterval(Integer interval) |
void |
setMaxPriceInCent(Integer maxPriceInCent) |
void |
setPriceInCent(Integer priceInCent) |
void |
setPriority(Integer priority) |
void |
setUntilMinute(Integer untilMinute) |
String |
toString() |
public static final int PRICE_IN_CENT_PAID_BUT_UNKNOWN
public Integer getFromMinute()
public void setFromMinute(Integer fromMinute)
public Integer getUntilMinute()
public void setUntilMinute(Integer untilMinute)
public Integer getInterval()
public void setInterval(Integer interval)
public Integer getPriceInCent()
public void setPriceInCent(Integer priceInCent)
public Integer getPriority()
public void setPriority(Integer priority)
public String getDescription()
public void setDescription(String description)
public Integer getMaxPriceInCent()
public void setMaxPriceInCent(Integer maxPriceInCent)
public Currency getCurrency()
public void setCurrency(Currency currency)
public int compareTo(PriceModel o)
compareTo in interface Comparable<PriceModel>@Deprecated protected String getCurrencyAsString(Integer priceInCent)
getCurrencyAsString(Integer, String, String, boolean)
instead to allow customize rendering of currency, e.g. $1.00 instead of 1,00$protected String getCurrencyAsString(Integer priceInCent, String decimalSeparator, String currencySymbol, boolean displayBeforePrice)
priceInCent - price in cent or equivalent smallest currency unitdecimalSeparator - should be '.' or ','currencySymbol - should be retrieved from webservice /private/getSupportedCurrenciesdisplayBeforePrice - true if currency symbol should be rendered before price, e.g. $1.00 instead of 1.00€Copyright © 2019. All rights reserved.