Package com.mg105.use_cases.outputds
Class ItemDetails
java.lang.Object
com.mg105.use_cases.outputds.ItemDetails
This is a struct like class whose sole purpose is to represent the state of a particular item in the inventory
-
Constructor Summary
ConstructorDescriptionItemDetails
(@NotNull String name, @NotNull String description, int count, boolean isUsable) Create new ItemDetails for an item. -
Method Summary
-
Constructor Details
-
ItemDetails
public ItemDetails(@NotNull @NotNull String name, @NotNull @NotNull String description, int count, boolean isUsable) Create new ItemDetails for an item.- Parameters:
name
- the name of the item.description
- the description of the item.count
- the count of the item.isUsable
- whether the item is usable.
-
-
Method Details
-
getCount
public int getCount()The count of the item- Returns:
- the count of the item
-
getDescription
The description of the item- Returns:
- the description of the item
-
getName
The name of the item- Returns:
- the name of the item
-
isUsable
If the item is usable- Returns:
- if the item is usable
-