Package com.vk2gpz.autosell.object
Class ItemSold
java.lang.Object
com.vk2gpz.autosell.object.ItemSold
This class represents an item sold in the shop.
It contains the material type, amount sold, and total sell amount.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the amount of the item sold.Gets the material type of the item sold.Gets the total amount earned from selling the item.voidsetAmountSold(int amountSold) Sets the amount of the item sold.voidsetMaterial(String material) Sets the material type of the item sold.voidsetSellAmount(Double sellAmount) Sets the total amount earned from selling the item.
-
Constructor Details
-
ItemSold
Constructor to initialize the ItemSold object with material type.- Parameters:
material- The material type of the item sold.
-
-
Method Details
-
getMaterial
Gets the material type of the item sold.- Returns:
- Gets the material type of the item sold.
-
setMaterial
Sets the material type of the item sold.- Parameters:
material- The material type of the item sold.
-
getAmountSold
public int getAmountSold()Gets the amount of the item sold.- Returns:
- Gets the amount of the item sold.
-
setAmountSold
public void setAmountSold(int amountSold) Sets the amount of the item sold.- Parameters:
amountSold- The amount of the item sold.
-
getSellAmount
Gets the total amount earned from selling the item.- Returns:
- Gets the total amount earned from selling the item.
-
setSellAmount
Sets the total amount earned from selling the item.- Parameters:
sellAmount- The total amount earned from selling the item.
-