Package | Description |
---|---|
myhw2.data |
Modifier and Type | Method and Description |
---|---|
static Inventory |
Data.newInventory()
Returns a new Inventory.
|
Modifier and Type | Method and Description |
---|---|
static Command |
Data.newAddCmd(Inventory inventory,
Video video,
int change)
Returns a command to add or remove copies of a video from the inventory.
|
static Command |
Data.newClearCmd(Inventory inventory)
Returns a command to remove all records from the inventory.
|
static Command |
Data.newInCmd(Inventory inventory,
Video video)
Returns a command to check in a video.
|
static Command |
Data.newOutCmd(Inventory inventory,
Video video)
Returns a command to check out a video.
|