MCPcopy Create free account
hub / github.com/Anchals24/Low-Level-Design / updateSoldOutItem

Method updateSoldOutItem

StateDesignPattern/Inventory.java:60–66  ·  view source on GitHub ↗
(int codeNumber)

Source from the content-addressed store, hash-verified

58 }
59
60 public void updateSoldOutItem(int codeNumber){
61 for (ItemShelf itemShelf : itemShelves) {
62 if (itemShelf.code == codeNumber) {
63 itemShelf.setSoldOut(true);
64 }
65 }
66 }
67}
68

Callers 1

dispenseProductMethod · 0.80

Calls 1

setSoldOutMethod · 0.80

Tested by

no test coverage detected