public class FileAmountMoneyCurrencyStorage extends AbstractAmountMoneyCurrencyStorage
AmountMoneyCurrencyStorage which saves to a file. The current
implementation is very inefficient and reads and writes the file on every
operation, i.e. doesn't cache.| Constructor and Description |
|---|
FileAmountMoneyCurrencyStorage(File file) |
| Modifier and Type | Method and Description |
|---|---|
Set<org.jscience.economics.money.Currency> |
getCurrencies() |
void |
removeCurrency(org.jscience.economics.money.Currency currency) |
void |
saveCurrency(org.jscience.economics.money.Currency currency) |
translatepublic FileAmountMoneyCurrencyStorage(File file)
public Set<org.jscience.economics.money.Currency> getCurrencies() throws AmountMoneyCurrencyStorageException
public void saveCurrency(org.jscience.economics.money.Currency currency)
throws AmountMoneyCurrencyStorageException
public void removeCurrency(org.jscience.economics.money.Currency currency)
throws AmountMoneyCurrencyStorageException
Copyright © 2018. All rights reserved.