Package | Description |
---|---|
myhw3.command | |
myhw3.data |
Modifier and Type | Method and Description |
---|---|
void |
CommandHistory.add(Command cmd)
Add command
undoable and clear redoable . |
void |
CommandHistoryObj.add(Command cmd) |
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.
|