public final class SellInfo
extends java.lang.Object
Constructor and Description |
---|
SellInfo(java.util.Map<java.lang.Integer,SoldItem> soldItems,
double totalEarnings)
Constructor for the sell info object.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Integer,SoldItem> |
getSoldItems()
Get all the sold items of the transaction.
|
double |
getTotalEarnings()
Get the total earnings from this transaction.
|
public SellInfo(java.util.Map<java.lang.Integer,SoldItem> soldItems, double totalEarnings)
soldItems
- The sold items of the transaction.totalEarnings
- The total earnings that were made from this transaction.public java.util.Map<java.lang.Integer,SoldItem> getSoldItems()
public double getTotalEarnings()