| Package | Description |
|---|---|
| myhw3.data | |
| myhw3.main |
| 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.
|
| Modifier and Type | Field and Description |
|---|---|
private Inventory |
Control.inventory |
| Constructor and Description |
|---|
Control(Inventory inventory,
UI ui) |