Class RestockReport
java.lang.Object
csce331.group13.project2.backend.RestockReport
Generates restock reports by identifying inventory items below a specified threshold.
- Author:
- Austin Glander, Kade Mertins
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents an inventory item that needs restocking. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<RestockReport.RestockItem> getRestockItems(int minThreshold) Retrieves all inventory items with stock below the specified threshold.
-
Constructor Details
-
RestockReport
public RestockReport()
-
-
Method Details
-
getRestockItems
Retrieves all inventory items with stock below the specified threshold. Results are sorted by stock quantity in ascending order.- Parameters:
minThreshold- The minimum stock threshold; items below this value are returned.- Returns:
- A list of RestockItem objects representing items that need restocking.
-