public class DefaultPrice extends org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog> implements Price, Externalizable
| Constructor and Description |
|---|
DefaultPrice() |
DefaultPrice(BigDecimal value,
Currency currency) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Currency |
getCurrency() |
BigDecimal |
getValue() |
int |
hashCode() |
void |
initialize(StandaloneCatalog catalog) |
void |
readExternal(ObjectInput in) |
DefaultPrice |
setCurrency(Currency currency) |
DefaultPrice |
setValue(BigDecimal value) |
org.killbill.xmlloader.ValidationErrors |
validate(StandaloneCatalog catalog,
org.killbill.xmlloader.ValidationErrors errors) |
void |
writeExternal(ObjectOutput out) |
public DefaultPrice()
public DefaultPrice(BigDecimal value, Currency currency)
public Currency getCurrency()
getCurrency in interface Pricepublic BigDecimal getValue() throws CurrencyValueNull
getValue in interface PriceCurrencyValueNullpublic DefaultPrice setCurrency(Currency currency)
public DefaultPrice setValue(BigDecimal value)
public org.killbill.xmlloader.ValidationErrors validate(StandaloneCatalog catalog, org.killbill.xmlloader.ValidationErrors errors)
validate in class org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog>public void initialize(StandaloneCatalog catalog)
initialize in class org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog>public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2010–2021. All rights reserved.