data
Interface MoneyBag
- All Superinterfaces:
- Cloneable, Comparable, CountingStock, DataBasketEntryDestination, DataBasketEntrySource, Nameable, Serializable, Stock, StockItem
- All Known Implementing Classes:
- MoneyBagFilter, MoneyBagImpl
- public interface MoneyBag
- extends CountingStock
Tag interface marking CountingStocks that work together with
Currencies.
- Since:
- v2.0
- Author:
- Steffen Zschaler
| Methods inherited from interface data.Stock |
add, addStock, contains, contains, containsStock, countItems, fillStockWithValue, get, getCatalog, iterator, keySet, remove, remove, size, sumStock |
transferMoney
public void transferMoney(MoneyBag mbDest,
DataBasket db,
NumberValue nvAmount)
- Tries to transfer money from this DataBasket into another one.
- Parameters:
mbDest - the MoneyBag to transfer the money todb - a transaction DataBasketnvAmount - the amount of money to transfer